If I am on my host machine, I can kickoff a script inside a Docker container using:
docker exec my_container bash myscript.sh
However, let's say I want to run myscript.sh inside my_container from another container bob. If I run the command above while I'm in the shell of bob, it doesn't work (Docker isn't even installed in bob).
What's the best way to do this?
docker exec ...it gives mecannot connect to the Docker daemonerror. Is there something else I need to do in addition to the socket mount?docker run -it -v /var/run/docker.sock:/var/run/docker.sockand so ?-v /usr/bin/docker:/usr/bin/dockerand-v /var/run/docker.sock:/var/run/docker.sockworks! If you make your comment into an answer, I will check it.