F
F
FlooDwm2021-07-29 00:54:39
Django
FlooDwm, 2021-07-29 00:54:39

How to use docker api from container?

There is a project, it consists of several containers (microservice). One of the containers is running django. So, how to give a command outside from this container with django so that it starts another container or several containers?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FlooDwm, 2021-07-29
@FlooDwm

docker run -v /var/run/docker.sock:/var/run/docker.sock Must be forwarded for the container in which the host machine's docker will be managed

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question