Add restart policy for enhanced restart manager#6744
Conversation
d5549d4 to
87259b0
Compare
|
Build succeeded.
|
87259b0 to
5f7d90a
Compare
|
Build succeeded.
|
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.
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.
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