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.

Share:
9,429

Related videos on Youtube

Octavian
Author by

Octavian

Updated on September 18, 2022

Comments

  • Octavian
    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
      Admin about 4 years
      How is this off topic? If anything its a duplicate.
  • Carlo C.
    Carlo C. almost 5 years
    I found this answer in the following Stackoverflow Post: stackoverflow.com/questions/40513545/…