How to prevent docker containers auto-start at daemon start in Windows?
9,429
You can easily achieve this by using the following command:
docker update --restart=no my-container
Where my-container should be every container you don't want to be started when your Host (In this case W10) boots.
Related videos on Youtube
Author by
Octavian
Updated on September 18, 2022Comments
-
Octavian over 1 year
I am using Docker and its docker-compose functionalities on Windows 10.
Right now when I run the command
docker-compose up -d
to start some containers in the background, the containers started will be running even after rebooting my Docker-Host.How can I prevent that? I just want them to start when I explicitly power them up.
-
Admin about 4 yearsHow is this off topic? If anything its a duplicate.
-
-
Carlo C. almost 5 yearsI found this answer in the following Stackoverflow Post: stackoverflow.com/questions/40513545/…