wracks
wracks

Reputation: 33

Issuing a Docker command while in another container

Is there a way to issue a docker command to another container within a different one such as docker stop? I am not sure if this is even possible, but are there any valid workarounds for this? Thanks.

Upvotes: 0

Views: 68

Answers (1)

user2105103
user2105103

Reputation: 13085

Sure. Mount the docker socket into a container, something like:

 -v /var/run/docker.sock:/var/run/docker.sock

Then issue API Commands. For reference, checkout DockerUI.

Upvotes: 1

Related Questions