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.

  • 2
    How is this off topic? If anything its a duplicate. Mar 24, 2020 at 13:48
  • Agreed. It could hardly be MORE on-topic, although neither the question nor the answer is Windows-specific.
    – Lambart
    Sep 8, 2022 at 20:32

1 Answer 1


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.


Not the answer you're looking for? Browse other questions tagged or ask your own question.