Xackery
Xackery

Reputation: 93

In Docker for Windows, How do I prevent containers from automatically starting on the daemon start?

Every time my Docker for Windows daemon boots up, it will spin up 7 different containers. I can go through and docker kill <id> each container.. I can spin up additional containers, do other stuff etc, and all is fine... until I reboot. Once I reboot the docker daemon, they all appear again, the exact same 7 containers.

Where can I go to flush them from being candidates to reboot automatically?

Upvotes: 1

Views: 719

Answers (1)

VonC
VonC

Reputation: 1329292

Maybe those containers have a restart policy which will make Docker to run them every-time it sees them absent?

You can confirm it with a docker inspect.

If you see them running, try, before killing them, to docker update them:

docker update --restart=no container1 container2 ...

Then reboot and see if those containers are still running.

Upvotes: 4

Related Questions