-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
On MacOS container checkpoint fails - crun returns 1 #22947
Comments
Here are more concise instructions. Containerfile is:
and then
The reason to install sudo, python3, openssh-server is that one of these installs systemd, which is the entrypoint. |
this is the error I get on Fedora 40:
looks similar to checkpoint-restore/criu#2324 If it can be of any help, in my case the inode is:
@adrianreber any idea what it could be? |
Upstream we do not test checkpointing systemd a lot. So I would recommend a container without systemd. |
From https://docs.podman.io/en/latest/markdown/podman-container-checkpoint.1.html
So this is already documented that systemd may not work. In any case this does not seem to be a podman bug as CRIU is failing not podman thus closing this here. |
Issue Description
On MacOS 14.5 I run:
% podman machine init --now --rootful --memory 4096
% podman pull alpine
% podman run -d alpine:latest top
% sudo podman container checkpoint what_ever
-> it works as expected
% podman rm —-force what_ever
% podman run --cap-add=CAP_MKNOD -d -p 2222:22 -p 2225:25 -p 2465:465 -p 2587:587 -p2143:143 -p2993:993 abc
87840b6fe995e85845ec4d89178685def5051fad2a7061e3677ea65252bebcd2
% sudo podman container checkpoint -R 87840b6fe995e85845ec4d89178685def5051fad2a7061e3677ea65252bebcd2
Error:
/usr/bin/crun checkpoint --image-path /var/lib/containers/storage/overlay-containers/87840b6fe995e85845ec4d89178685def5051fad2a7061e3677ea65252bebcd2/userdata/checkpoint --work-path /var/lib/containers/storage/overlay-containers/87840b6fe995e85845ec4d89178685def5051fad2a7061e3677ea65252bebcd2/userdata --leave-running --leave-running 87840b6fe995e85845ec4d89178685def5051fad2a7061e3677ea65252bebcd2
failed: exit status 1% sudo podman run --cap-add=CAP_MKNOD -d -p 2222:22 -p 2225:25 -p 2465:465 -p 2587:587 -p2143:143 -p2993:993 abc
80dbc805c2b698639c19ecf00128edd8bcbe817fd7442113c8ef14fb71d5f857
% sudo podman container checkpoint -R 80dbc805c2b698639c19ecf00128edd8bcbe817fd7442113c8ef14fb71d5f857
Error:
/usr/bin/crun checkpoint --image-path /var/lib/containers/storage/overlay-containers/80dbc805c2b698639c19ecf00128edd8bcbe817fd7442113c8ef14fb71d5f857/userdata/checkpoint --work-path /var/lib/containers/storage/overlay-containers/80dbc805c2b698639c19ecf00128edd8bcbe817fd7442113c8ef14fb71d5f857/userdata --leave-running --leave-running 80dbc805c2b698639c19ecf00128edd8bcbe817fd7442113c8ef14fb71d5f857
failed: exit status 1Steps to reproduce the issue
See above
Describe the results you received
crun returns 1
Describe the results you expected
crun return 0
podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: