-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
add Restart=on-failure for inner docker systemd service #9775
Conversation
/ok-to-test |
kvm2 Driver Times for Minikube (PR 9775): 59.6s 59.1s 54.2s Averages Time Per Log
docker Driver Times for Minikube (PR 9775): 28.6s 28.5s 28.5s Averages Time Per Log
|
kvm2 Driver Times for Minikube (PR 9775): 56.1s 60.9s 60.1s Averages Time Per Log
docker Driver Times for Minikube (PR 9775): 28.3s 29.8s 28.5s Averages Time Per Log
|
/retest-this-please |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: medyagh, sharifelgamal The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
closes #9691
Fixes the case when docker dies and we never restart it. and then when users run minkube docker-env minikube sees docker sotpped and tries to restart it and that had caused Api server container to be restarting as well.
it was partially improved by previous PR that changed restart to reload) but still didnt fix actual problem that docker was dying and nobody was birning it back to life
this PR will make Docker service to start after it is failed automatically by Systemd without sending it to an endless loop
in addition to restart always I added
StartLimitIntervalSec=interval
and ,StartLimitBurst=burst
to the systemd file to avoid infinite restart loopssystemd docs https://www.freedesktop.org/software/systemd/man/systemd.unit.html#StartLimitIntervalSec=
link to Docker's recommended setting
https://github.com/moby/moby/blob/e1b15e1e5bf3a512ac7298ed29fcd4126c45c1ae/contrib/init/systemd/docker.service#L29-L31