-
Notifications
You must be signed in to change notification settings - Fork 546
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
support PostExit Hook #1182
Comments
Did you mean "exist" or "exit" ? |
And how would it be different from |
Yes
|
How implementable? |
did not get your question ? You mean how to introduce a runtime implementation. If yes I believe that we can easily do this in |
An OCI runtime process disappears on exec(2)-ing the container process, so I'm not sure how this proposal is implementable. |
@AkihiroSuda would please give me more details about |
https://github.com/opencontainers/runc/blob/v1.1.4/docs/terminals.md#detached
|
got the point. Do we have a hook mechanism into containerd that may catch container exit ? |
Feel free to submit a proposal in the containerd repo. |
opened ticket containerd/containerd#8163 |
What is the problem I am trying to solve ?
Looking at the list of supported hooks, we are missing a hooks for configuring custom actions related to the
exit
lifecycle ( i.e normal exist / killing a container ..)In nerdctl project, we need a hooks to deal with container deps when the container exit, such as cleaning some state files.
Describe the solution
add new hook
PostExit
to the hooks listThe text was updated successfully, but these errors were encountered: