Comments (4)
Here are more concise instructions. Containerfile is:
FROM docker.io/library/ubuntu:20.04
RUN apt-get update && apt-get install -y sudo python3 openssh-server
ENTRYPOINT ["/lib/systemd/systemd“]
and then
% podman build -t uuu .
% podman run -d uuu:latest
8147b370dcc131310521682426b6df7769c47009f5b397e15b1f2fb8745a33ad
% sudo podman container checkpoint 8147b370dcc131310521682426b6df7769c47009f5b397e15b1f2fb8745a33ad
Error: `/usr/bin/crun checkpoint --image-path /var/lib/containers/storage/overlay-containers/8147b370dcc131310521682426b6df7769c47009f5b397e15b1f2fb8745a33ad/userdata/checkpoint --work-path /var/lib/containers/storage/overlay-containers/8147b370dcc131310521682426b6df7769c47009f5b397e15b1f2fb8745a33ad/userdata 8147b370dcc131310521682426b6df7769c47009f5b397e15b1f2fb8745a33ad` failed: exit status 1
The reason to install sudo, python3, openssh-server is that one of these installs systemd, which is the entrypoint.
from podman.
this is the error I get on Fedora 40:
(33.251449) epoll: Dumping: eventpoll-tfd: id 0x00005e tfd 10 events 0x000019 data 0x0000000000000a
(33.251449) epoll: Dumping: eventpoll-tfd: id 0x00005e tfd 9 events 0x000019 data 0x00000000000009
(33.251450) epoll: Dumping: eventpoll-tfd: id 0x00005e tfd 8 events 0x000019 data 0x00000000000008
(33.251451) epoll: Dumping: eventpoll-tfd: id 0x00005e tfd 5 events 0x000019 data 0x00000000000005
(33.251452) epoll: Dumping: eventpoll-tfd: id 0x00005e tfd 6 events 0x000019 data 0x00000000000006
(33.251452) epoll: Dumping: eventpoll-tfd: id 0x00005e tfd 3 events 0x000019 data 0x00000000000003
(33.251467) 822520 fdinfo 5: pos: 0 flags: 0/0x1
(33.251489) fsnotify: wd: wd 0x000003 s_dev 0x000097 i_ino 0x30d156d8 mask 0x0002c8
(33.251491) fsnotify: [fhandle] bytes 0x000024 type 0x0000f8 __handle 0x810021fb00000000:0x7a4be1136260a9fa
(33.251497) fsnotify: Trying via mntid 2612 root / ns_mountpoint @./ (28)
(33.251500) Warn (criu/fsnotify.c:281): fsnotify: Handle 0x97:0x30d156d8 cannot be opened
(33.251501) irmap: Resolving 97:30d156d8 path
(33.251502) irmap: Found /usr/share/dbus-1/system-services in cache
(33.251503) fsnotify: Dumping /usr/share/dbus-1/system-services as path for handle
(33.251504) fsnotify: wd: wd 0x000002 s_dev 0x000097 i_ino 0x2149dfd3 mask 0x0002c8
(33.251505) fsnotify: [fhandle] bytes 0x000024 type 0x0000f8 __handle 0x810021fb00000000:0x7a4be1136260a9fa
(33.251508) fsnotify: Trying via mntid 2612 root / ns_mountpoint @./ (28)
(33.251510) Warn (criu/fsnotify.c:281): fsnotify: Handle 0x97:0x2149dfd3 cannot be opened
(33.251512) irmap: Resolving 97:2149dfd3 path
(33.251514) irmap: Found /etc/dbus-1/system.d in cache
(33.251515) fsnotify: Dumping /etc/dbus-1/system.d as path for handle
(33.251515) fsnotify: wd: wd 0x000001 s_dev 0x000097 i_ino 0xa1e942 mask 0x0002c8
(33.251516) fsnotify: [fhandle] bytes 0x000024 type 0x0000f8 __handle 0x810021fb00000000:0x7a4be1136260a9fa
(33.251519) fsnotify: Trying via mntid 2612 root / ns_mountpoint @./ (28)
(33.251521) Warn (criu/fsnotify.c:281): fsnotify: Handle 0x97:0xa1e942 cannot be opened
(33.251522) irmap: Resolving 97:a1e942 path
(33.251523) irmap: Scanning /etc hint
(33.251530) irmap: Scanning /var/spool hint
(33.251531) irmap: Scanning /var/log hint
(33.251531) irmap: Scanning /usr/share/dbus-1/system-services hint
(33.251532) irmap: Scanning /var/lib/polkit-1/localauthority hint
(33.251533) irmap: Scanning /usr/share/polkit-1/actions hint
(33.251533) irmap: Scanning /lib/udev hint
(33.251534) irmap: Scanning /. hint
(33.251534) irmap: Scanning /no-such-path hint
(33.251535) irmap: Refresh stat for /no-such-path
(33.251545) Warn (criu/irmap.c:104): irmap: Can't stat /no-such-path: No such file or directory
(33.251547) Error (criu/fsnotify.c:284): fsnotify: Can't dump that handle
(33.251550) ----------------------------------------
(33.251557) Error (criu/cr-dump.c:1674): Dump files (pid: 822520) failed with -1
(33.251560) Waiting for 822520 to trap
(33.251565) Daemon 822520 exited trapping
(33.251568) Sent msg to daemon 3 0 0
pie: 30: __fetched msg: 3 0 0
pie: 30: 30: new_sp=0x7fd3119a0e48 ip 0x7fd311d4c64a
(33.251589) 822520 was trapped
(33.251596) 822520 was trapped
(33.251598) 822520 (native) is going to execute the syscall 15, required is 15
(33.251603) 822520 was stopped
(33.251726) net: Unlock network
(33.251728) Running network-unlock scripts
(33.268963) Unfreezing tasks into 1
(33.268982) Unseizing 822446 into 1
(33.268986) Unseizing 822505 into 1
(33.268988) Unseizing 822520 into 1
(33.269010) Unseizing 822521 into 1
(33.269012) Unseizing 822523 into 1
(33.269015) Unseizing 822531 into 1
(33.269035) Error (criu/cr-dump.c:2098): Dumping FAILED.
looks similar to checkpoint-restore/criu#2324
If it can be of any help, in my case the inode is:
# podman exec -lti find -inum 10611010
./usr/share/dbus-1/system.d
@adrianreber any idea what it could be?
from podman.
Upstream we do not test checkpointing systemd a lot. So I would recommend a container without systemd.
from podman.
From https://docs.podman.io/en/latest/markdown/podman-container-checkpoint.1.html
IMPORTANT: If the container is using systemd as entrypoint checkpointing the container might not be possible.
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.
from podman.
Related Issues (20)
- Permission denied extracting to etc.defaults/shadow within a bind mount on MacOS, works with Docker HOT 6
- Changing system time during pod creation causes init containers to run in incorrect order HOT 2
- unlinkat directory not empty on commit (rootless) HOT 5
- Rootless fails to receive systemd slice shortly after boot HOT 5
- podman tries to make user-executable directory world-executable (rootless) HOT 3
- [Podman man] --no-hosts and base_hosts_file semantics HOT 1
- remote: usability: "diff" with no args makes nonsensical suggestion (--latest)
- Containerfile.in not automatically pre-processed HOT 2
- Swagger docs mismatch for /images/{name}/push and libpod endpoint HOT 2
- newuidmap Fails with “Operation not permitted” When Running Podman Inside amd64 Podman container on macOS with Rosetta HOT 2
- podman : Depends: containers-common (>= 4:1) but it is not going to be installed HOT 1
- cannot remove images on MacOS HOT 5
- Podman v5 no longer builds Dockerfiles with build args used as --platform in FROM instruction HOT 2
- quadlet: add Container-spec StopSignal mapping to podman --stop-signal HOT 1
- podman system renumber fails if a volume exists
- Podman doesn't use a local image in `FROM` in Dockerfile/Containerfile HOT 2
- `podman-catatonit` cannot be installed in a UBI9 based container image HOT 1
- macOS vm virtiofs concurrency issue HOT 8
- Podman creates a rundir with insufficient permissions HOT 5
- podman build -o type=tar,dest=- mixes tar and messages
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from podman.