Docker Community Forums

Share and learn in the Docker community.

Restart always starts the same two containers and shuts down the rest

Whenever I restart the Docker daemon it will shut down the containers I had running and then upon restart, bring up two containers that I have not used in a long time. The two containers are related to each other, so I guess it makes sense that they both start together. I definitely don’t need them running though and it gets a little annoying to reissue docker stop ... every single time I have to restart the daemon. Anyone know what I need to do to get this to stop? Thanks in advance.

It sounds like those containers were built with restart: always

Ah, never noticed that before. Yep, that appears to be it. Thanks!