-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Add on-failure to default restart policy #29902
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
vdemeester
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🐸
|
LGTM |
thaJeztah
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
|
I think we should consider adding |
In the event that the docker daemon is managed by systemd and spontaneously dies the default service configuration does not have docker restart. For people who just want to install and start docker then never worry about whether docker is running a better default may be to restart the service on a failure. Signed-off-by: Ryan Abrams <[email protected]>
ee60f8a to
7b9ecb9
Compare
|
@justincormack good thinking. Consider it done. |
cpuguy83
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
In the event that the docker daemon is managed by systemd and spontaneously
dies the default service configuration does not have docker restart. For people
who just want to install and start docker then never worry about whether docker
is running a better default may be to restart the service on a failure.
- What I did
Set default docker service behavior to restart on failure
- How I did it
Added Restart parameter to default docker service configs
- How to verify it
Install Docker on a machine with systemd, kill dockerd process and see if it
restarts
- Description for the changelog
Set default docker service behavior to restart on failure
- A picture of a cute animal (not mandatory but encouraged)