-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Add restart policy for enhanced restart manager #6744
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
d5549d4 to
87259b0
Compare
|
Build succeeded.
|
87259b0 to
5f7d90a
Compare
|
Build succeeded.
|
AkihiroSuda
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.
Thank you! 👍
5f7d90a to
1536985
Compare
|
Build succeeded.
|
1536985 to
3bd541c
Compare
|
Build succeeded.
|
3bd541c to
dea6935
Compare
|
Build succeeded.
|
dea6935 to
e0b1fec
Compare
|
/retest |
|
Build succeeded.
|
e0b1fec to
6ed4d81
Compare
|
Build succeeded.
|
|
@AkihiroSuda PTAL 🙏 |
kzys
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.
I know that this Docker-compatible restart support is something nerdctl wants and cannot implement by itself by being a short-lived CLI. However would we make containerd Docker-compatible in this way?
There are other features that would need a persistent daemon such as health check (see #5609). I'm unsure that we'd like to have all of them in containerd.
Yes, I don't see a problem, as the plugin can be turned off.
We can have a healthcheck plugin too. |
AkihiroSuda
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.
Thanks, but "unless-stopped" logic doesn't seem correct
https://github.com/containerd/containerd/pull/6744/files#r842432941
Other part looks good
|
Build succeeded.
|
Signed-off-by: Ye Sijun <[email protected]>
|
@kzys I specially handled "" for count label and log the error from Atoi(). https://github.com/containerd/containerd/compare/bb54f7c05161887ffef1ce75026de97b335a3075..3df7674058301f290fc148719d483e47f4118494 Please take a look again, Thanks! |
|
Build succeeded.
|
|
Ping @AkihiroSuda @kzys @dmcgowan |
|
@AkihiroSuda the change looks good to you? |
Signed-off-by: Ye Sijun [email protected]
TL;DR: In order to be compatible with the restart policies of docker in nerdctl, we need enhance containerd's restart manager by adding a label:
containerd.io/restart.policy,containerd.io/restart.count.Discussed in containerd/nerdctl#945