Skip to content

Comments

fix: ensuring that containers can survive a docker upgrade when running using docker-compose#182

Merged
MasterKale merged 2 commits intoduo-labs:masterfrom
nickatduo:naspinall/always-restart-docker-compose-containers
Dec 16, 2025
Merged

fix: ensuring that containers can survive a docker upgrade when running using docker-compose#182
MasterKale merged 2 commits intoduo-labs:masterfrom
nickatduo:naspinall/always-restart-docker-compose-containers

Conversation

@nickatduo
Copy link
Contributor

Summary

Docker restart policies allow for the restarting of Docker containers in a number of different scenarios, if the container fails, if the machine is rebooted etc.

While running this application, I've run into issues where we patch the underlying docker daemon, the containers are not started again. This is likely due to the fact that the patching process restarts the daemon, and this is considered a valid stop of the docker daemon. As we currently have undless-stopped configured, the containers aren't brought back up.

So setting the restart policy to always to ensure that no matter what, they containers are started again, and we can stop having stochastic outages linked to the docker daemon updates.

Copy link
Collaborator

@MasterKale MasterKale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice find @nickatduo, thank you for looking into the outage and figuring this out! This looks good to me :shipit:

@MasterKale MasterKale merged commit 826f7a3 into duo-labs:master Dec 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants