How to run docker for desktop without starting containers

Viewed 194

Sometimes I want to run docker for desktop without starting the containers automatically upon startup and to choose which one I want to load manually to resolve some problems (Sometimes docker doesn't have memory to load all of them and sometimes it crashes so i want to do it selectively).

Is there a CLI parameter or configuration file change to achieve that?

Docker for desktop for windows 10.

1 Answers

To update all of your containers, to not start,

docker update --restart=no $(docker ps -a -q)

If you need to access the docker root directory, where the images and containers are stored for example, they are at c:\ProgramData\Dockerand you need to know the container ID and then access the config file for you to change the restart policy before Docker starts.

Related