-
Notifications
You must be signed in to change notification settings - Fork 39.6k
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
Adopt Docker's own container restarts #816
Comments
I updated the PR to handle the policy of on-failure so you don't have to worry about doing that yourself ;) Thanks! |
@thockin was there anything else you wanted to cover with this issue? |
I think this is a question for @kubernetes/sig-node and the relevant devs to discuss. Could/should restarting be delegated to the container runtimes (because it is plural now) or do we need a hook to do stuff when containers need restart? I feel like we need to own it, at least for some cases - e.g. a restart of the infra container necessitates a full pod restart, and Docker just can't know that (AFAIK anyway). So even if we assert that restarts are delegated to container runtimes, we still can't use Docker's restarts because Docker is ignorant of pods (or generically restart dependencies). @dchen1107 @yujuhong I propose this be closed. If you concur, please put a bullet in it and close. |
There are a couple of issues that we need to deal with before we can (if we choose to) completely delegate the container restarts to either the container runtimes or other daemons (e.g., systemd):
I think we will want to explore the possibility of delegating this responsibility to something else while or after converging to a new runtime interface. However, I don't see we directly using docker restart policy due to the required features stated above. I'm okay with closing this one and will open a issue if we want to discuss the issues for all container runtimes. |
To be clear, when I said:
I meant that restarts could be delegated to the kubelet runtime On Sun, Apr 3, 2016 at 11:45 AM, Yu-Ju Hong notifications@github.com
|
Closing based on the discussion above. |
Include custom metrics in ContainerStats structure
Add spelling verification script
Improve functional tests
Remove dependency on code.cloudfoundry.org/clock
moby/moby#7414
As I understand, when the docker daemon dies, this only restarts containers with a policy of always which means we still have to handle the on failure case ourselves.
The text was updated successfully, but these errors were encountered: