-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
How to handle checkpointing when started with '--rm' #3774
Labels
do-not-close
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
Comments
Once Conmon is launched, we can't configure it further - so I don't think we can avoid it removing the container. Having the two conflict seems like the only option. |
Yes conflict the args. |
This issue had no activity for 30 days. In the absence of activity or the "do-not-close" label, the issue will be automatically closed within 7 days. |
Will fix this soon. |
Awesome. |
Fixed with #4594 |
github-actions
bot
added
the
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
label
Sep 23, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
do-not-close
locked - please file new issue/PR
Assist humans wanting to comment on an old issue or PR with locked comments.
When a container is checkpointed without
--export
all the checkpoint information about that container is stored in theuserdata/
directory.If a container is started with
--rm
this directory ('userdata') - and everything else - is removed once the container is stopped or checkpointed. Looking into how to best handle this, it seems that the information what to do with the container on exit is stored in the conmon command-line using--exit-args
. This means, that once the container is running there is no way to influence what conmon does with that container on exit.The problem is now that after
podman container checkpoint -l
, the checkpoint is written but then everything is deleted. The container can never be restored. If the container is checkpointed with--export
this is not a problem, as all the checkpoint information is in the checkpoint archive.To solve this problem that a checkpointed container started with
--rm
cannot be restored can either be solved by somehow tellingconmon
to not delete the container on stop. This, however, seems complicated as it would require to tellconmon
to somehow change its--exit-args
. There is not really a communication channel between podman andconmon
for something like this.Another way to handle this would be to just block checkpointing if a container is started with
--rm
. This means that a user needs to know this limitation during container start up.As I see no easy way to change
conmon
--exit-args
I think the blocking of checkpointing of containers started with--rm
is the best (easiest) sollution.Is there any way to tell
conmon
to change its--exit-args
or should I just block checkpoints of containers started with--rm
?The text was updated successfully, but these errors were encountered: