Jaster Posted September 17, 2020 Share Posted September 17, 2020 (edited) Is it possible to run a Docker container, that can access and manage another Container? What I want to do is, to check if a container is running, and if not just start it - maybe I don't need another docker for that Edited September 18, 2020 by Jaster Quote Link to comment
Energen Posted September 17, 2020 Share Posted September 17, 2020 You'd probably need to use a user script... such as if [ "$( docker container inspect -f '{{.State.Status}}' the_docker_name )" == "exited" ]; then docker start the_docker_name Something along those lines... 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.