How to disable docker containers auto start

31 December 2023

If we are working on multiple projects with each of them based on various docker container(s), it could be annoying to stop every container that is automatically started only to turn on our desired container after that.

First of all, lets list all our running conatiners:

docker ps

This will list all running containers, probably the ones you need to remove from auto start. Copy container ID (e.g. 3ba6e794b3f7) and then run command:

docker update --restart=no 3ba6e794b3f7

And that's it.