Skip to content
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

Should this persist across docker restarts? #1

Open
alanruttenberg opened this issue Oct 3, 2017 · 6 comments
Open

Should this persist across docker restarts? #1

alanruttenberg opened this issue Oct 3, 2017 · 6 comments

Comments

@alanruttenberg
Copy link

I'm finding that I have to re-install when I choose restart in the docker menu.

Also, is this known to work in Docker 17.09.0-ce ?

I'm running 17.06.2-ce-mac27 and it works in that, but when I tried to upgrade it failed. Thought I'd ask so I can know whether it's something I did.

Thanks!

@boucher
Copy link
Owner

boucher commented Oct 3, 2017

I haven't tried since the update to 17.09, what's the error?

Unfortunately, it cannot persist across restarts, because restarts restore the docker vm to its original state. You could modify the container to add an infinite sleep, and then try starting the container with --restart=always.

@alanruttenberg
Copy link
Author

Creating the checkpoint doesn't complain, but restoring it does

Error response from daemon: oci runtime error: criu failed: type NOTIFY errno 0
log file: /var/lib/docker/containers/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/checkpoints/cp1/criu.work/restore-2017-10-03T23:16:23.469915714Z/restore.log

Here's the tail of the log after all the "Collected..." lines

(00.002406)  `- ... done
(00.002408) Collecting 43/59 (flags 0)
(00.002415) Opening ghost file 0x1 for home/lsw/abcl-felix-cache/cache.lock
(00.002418)  `- ... done
(00.002482) cg: rewriting docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea to /docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002488) cg: rewriting docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea to /docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002491) cg: rewriting docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea to /docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002495) cg: rewriting docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea to /docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002498) cg: rewriting docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea to /docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002501) cg: rewriting docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea to /docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002505) cg: rewriting docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea to /docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002507) cg: rewriting docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea to /docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002511) cg: rewriting docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea to /docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002514) cg: rewriting docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea to /docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002516) cg: rewriting docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea to /docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002520) cg: rewriting docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea to /docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002523) cg: rewriting docker to /docker
(00.002526) cg: rewriting docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea to /docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002530) cg: Preparing cgroups yard (cgroups restore mode 0x4)
(00.002567) cg: Opening .criu.cgyard.KmMooI as cg yard
(00.002576) cg: 	Making controller dir .criu.cgyard.KmMooI/pids (pids)
(00.002595) cg: Determined cgroup dir pids//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea already exist
(00.002597) cg: Skip restoring properties on cgroup dir pids//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002607) cg: 	Making controller dir .criu.cgyard.KmMooI/hugetlb (hugetlb)
(00.002620) cg: Determined cgroup dir hugetlb//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea already exist
(00.002623) cg: Skip restoring properties on cgroup dir hugetlb//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002628) cg: 	Making controller dir .criu.cgyard.KmMooI/net_prio (net_prio)
(00.002642) cg: Determined cgroup dir net_prio//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea already exist
(00.002644) cg: Skip restoring properties on cgroup dir net_prio//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002649) cg: 	Making controller dir .criu.cgyard.KmMooI/perf_event (perf_event)
(00.002662) cg: Determined cgroup dir perf_event//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea already exist
(00.002664) cg: Skip restoring properties on cgroup dir perf_event//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002669) cg: 	Making controller dir .criu.cgyard.KmMooI/net_cls (net_cls)
(00.002681) cg: Determined cgroup dir net_cls//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea already exist
(00.002683) cg: Skip restoring properties on cgroup dir net_cls//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002688) cg: 	Making controller dir .criu.cgyard.KmMooI/freezer (freezer)
(00.002701) cg: Determined cgroup dir freezer//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea already exist
(00.002703) cg: Skip restoring properties on cgroup dir freezer//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002708) cg: 	Making controller dir .criu.cgyard.KmMooI/devices (devices)
(00.002720) cg: Determined cgroup dir devices//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea already exist
(00.002722) cg: Skip restoring properties on cgroup dir devices//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002727) cg: 	Making controller dir .criu.cgyard.KmMooI/memory (memory)
(00.002739) cg: Determined cgroup dir memory//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea already exist
(00.002741) cg: Skip restoring properties on cgroup dir memory//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002746) cg: 	Making controller dir .criu.cgyard.KmMooI/blkio (blkio)
(00.002758) cg: Determined cgroup dir blkio//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea already exist
(00.002760) cg: Skip restoring properties on cgroup dir blkio//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002765) cg: 	Making controller dir .criu.cgyard.KmMooI/cpuacct (cpuacct)
(00.002779) cg: Determined cgroup dir cpuacct//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea already exist
(00.002781) cg: Skip restoring properties on cgroup dir cpuacct//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002786) cg: 	Making controller dir .criu.cgyard.KmMooI/cpu (cpu)
(00.002799) cg: Determined cgroup dir cpu//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea already exist
(00.002801) cg: Skip restoring properties on cgroup dir cpu//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002806) cg: 	Making controller dir .criu.cgyard.KmMooI/cpuset (cpuset)
(00.002818) cg: Determined cgroup dir cpuset//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea already exist
(00.002820) cg: Skip restoring properties on cgroup dir cpuset//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002825) cg: 	Making controller dir .criu.cgyard.KmMooI/openrc (none,name=openrc)
(00.002837) cg: Determined cgroup dir openrc//docker already exist
(00.002839) cg: Skip restoring properties on cgroup dir openrc//docker
(00.002845) cg: 	Making controller dir .criu.cgyard.KmMooI/systemd (none,name=systemd)
(00.002860) cg: Determined cgroup dir systemd//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea already exist
(00.002862) cg: Skip restoring properties on cgroup dir systemd//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea
(00.002868) Running pre-restore scripts
(00.002870) 	RPC
(00.003005) Saved netns fd for links restore
(00.003959) mnt: Reading mountpoint images (id 12 pid 1)
(00.003968) mnt: 		Will mount 89 from /
(00.003971) mnt: 		Will mount 89 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/firmware
(00.003973) mnt: 	Read 89 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/firmware
(00.003977) mnt: 		Will mount 88 from /dev/null (E)
(00.003980) mnt: 		Will mount 88 @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/sched_debug
(00.003981) mnt: 	Read 88 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/sched_debug
(00.003985) mnt: 		Will mount 87 from /dev/null (E)
(00.003987) mnt: 		Will mount 87 @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/timer_list
(00.003989) mnt: 	Read 87 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/timer_list
(00.003992) mnt: 		Will mount 86 from /dev/null (E)
(00.003994) mnt: 		Will mount 86 @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/kcore
(00.003995) mnt: 	Read 86 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/kcore
(00.003998) mnt: 		Will mount 85 from /sysrq-trigger
(00.004000) mnt: 		Will mount 85 @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/sysrq-trigger
(00.004002) mnt: 	Read 85 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/sysrq-trigger
(00.004004) mnt: 		Will mount 84 from /sys
(00.004006) mnt: 		Will mount 84 @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/sys
(00.004008) mnt: 	Read 84 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/sys
(00.004010) mnt: 		Will mount 83 from /irq
(00.004012) mnt: 		Will mount 83 @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/irq
(00.004014) mnt: 	Read 83 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/irq
(00.004016) mnt: 		Will mount 82 from /fs
(00.004018) mnt: 		Will mount 82 @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/fs
(00.004020) mnt: 	Read 82 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/fs
(00.004022) mnt: 		Will mount 81 from /bus
(00.004024) mnt: 		Will mount 81 @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/bus
(00.004026) mnt: 	Read 81 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc/bus
(00.004029) mnt: 		Will mount 225 from /var/lib/docker/containers/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/shm (E)
(00.004031) mnt: 		Will mount 225 @ /tmp/.criu.mntns.PiahPD/12-0000000000/dev/shm
(00.004032) mnt: 	Read 225 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/dev/shm
(00.004036) mnt: 		Will mount 224 from /var/lib/docker/containers/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/hosts (E)
(00.004038) mnt: 		Will mount 224 @ /tmp/.criu.mntns.PiahPD/12-0000000000/etc/hosts
(00.004039) mnt: 	Read 224 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/etc/hosts
(00.004048) mnt: 		Will mount 223 from /var/lib/docker/containers/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/hostname (E)
(00.004050) mnt: 		Will mount 223 @ /tmp/.criu.mntns.PiahPD/12-0000000000/etc/hostname
(00.004052) mnt: 	Read 223 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/etc/hostname
(00.004055) mnt: 		Will mount 222 from /var/lib/docker/containers/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/resolv.conf (E)
(00.004057) mnt: 		Will mount 222 @ /tmp/.criu.mntns.PiahPD/12-0000000000/etc/resolv.conf
(00.004058) mnt: 	Read 222 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/etc/resolv.conf
(00.004061) mnt: 		Will mount 221 from /
(00.004063) mnt: 		Will mount 221 @ /tmp/.criu.mntns.PiahPD/12-0000000000/dev/mqueue
(00.004064) mnt: 	Read 221 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/dev/mqueue
(00.004068) mnt: 		Will mount 220 from /sys/fs/cgroup/systemd (E)
(00.004070) mnt: 		Will mount 220 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/systemd
(00.004071) mnt: 	Read 220 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/systemd
(00.004080) mnt: 		Will mount 219 from /sys/fs/cgroup/pids (E)
(00.004082) mnt: 		Will mount 219 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/pids
(00.004084) mnt: 	Read 219 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/pids
(00.004087) mnt: 		Will mount 218 from /sys/fs/cgroup/hugetlb (E)
(00.004089) mnt: 		Will mount 218 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/hugetlb
(00.004091) mnt: 	Read 218 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/hugetlb
(00.004094) mnt: 		Will mount 217 from /sys/fs/cgroup/net_prio (E)
(00.004096) mnt: 		Will mount 217 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/net_prio
(00.004097) mnt: 	Read 217 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/net_prio
(00.004101) mnt: 		Will mount 216 from /sys/fs/cgroup/perf_event (E)
(00.004102) mnt: 		Will mount 216 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/perf_event
(00.004104) mnt: 	Read 216 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/perf_event
(00.004109) mnt: 		Will mount 215 from /sys/fs/cgroup/net_cls (E)
(00.004111) mnt: 		Will mount 215 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/net_cls
(00.004112) mnt: 	Read 215 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/net_cls
(00.004116) mnt: 		Will mount 214 from /sys/fs/cgroup/freezer (E)
(00.004117) mnt: 		Will mount 214 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/freezer
(00.004119) mnt: 	Read 214 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/freezer
(00.004122) mnt: 		Will mount 213 from /sys/fs/cgroup/devices (E)
(00.004124) mnt: 		Will mount 213 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/devices
(00.004125) mnt: 	Read 213 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/devices
(00.004129) mnt: 		Will mount 212 from /sys/fs/cgroup/memory (E)
(00.004130) mnt: 		Will mount 212 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/memory
(00.004132) mnt: 	Read 212 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/memory
(00.004137) mnt: 		Will mount 211 from /sys/fs/cgroup/blkio (E)
(00.004139) mnt: 		Will mount 211 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/blkio
(00.004140) mnt: 	Read 211 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/blkio
(00.004144) mnt: 		Will mount 210 from /sys/fs/cgroup/cpuacct (E)
(00.004145) mnt: 		Will mount 210 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/cpuacct
(00.004147) mnt: 	Read 210 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/cpuacct
(00.004150) mnt: 		Will mount 209 from /sys/fs/cgroup/cpu (E)
(00.004152) mnt: 		Will mount 209 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/cpu
(00.004154) mnt: 	Read 209 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/cpu
(00.004157) mnt: 		Will mount 208 from /sys/fs/cgroup/cpuset (E)
(00.004159) mnt: 		Will mount 208 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/cpuset
(00.004160) mnt: 	Read 208 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/cpuset
(00.004167) mnt: 		Will mount 207 from /sys/fs/cgroup/openrc/docker (E)
(00.004169) mnt: 		Will mount 207 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/openrc
(00.004170) mnt: 	Read 207 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup/openrc
(00.004173) mnt: 		Will mount 206 from /
(00.004175) mnt: 		Will mount 206 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup
(00.004176) mnt: 	Read 206 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys/fs/cgroup
(00.004179) mnt: 		Will mount 205 from /
(00.004180) mnt: 		Will mount 205 @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys
(00.004182) mnt: 	Read 205 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/sys
(00.004185) mnt: 		Will mount 204 from /
(00.004186) mnt: 		Will mount 204 @ /tmp/.criu.mntns.PiahPD/12-0000000000/dev/pts
(00.004188) mnt: 	Read 204 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/dev/pts
(00.004191) mnt: 		Will mount 203 from /
(00.004192) mnt: 		Will mount 203 @ /tmp/.criu.mntns.PiahPD/12-0000000000/dev
(00.004194) mnt: 	Read 203 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/dev
(00.004202) mnt: 		Will mount 202 from /
(00.004204) mnt: 		Will mount 202 @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc
(00.004205) mnt: 	Read 202 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/proc
(00.004209) mnt: 		Will mount 201 from /
(00.004211) mnt: 		Will mount 201 @ /tmp/.criu.mntns.PiahPD/12-0000000000/
(00.004212) mnt: 	Read 201 mp @ /tmp/.criu.mntns.PiahPD/12-0000000000/
(00.004255) Warn  (criu/cr-restore.c:1137): Set CLONE_PARENT | CLONE_NEWPID but it might cause restore problem,because not all kernels support such clone flags combinations!
(00.004258) Forking task with 1 pid (flags 0x6c028000)
(00.009524) PID: real 5946 virt 1
(00.009625) Wait until namespaces are created
(00.013534)      1: Found fd 0 (id pipe:[34086]) in inherit fd list (caller close_old_fds)
(00.013554)      1: Found fd 1 (id pipe:[34087]) in inherit fd list (caller close_old_fds)
(00.013557)      1: Found fd 2 (id pipe:[34088]) in inherit fd list (caller close_old_fds)
(00.013630) Running setup-namespaces scripts
(00.013650) 	RPC
(00.153046)      1: cg: Move into 2
(00.153083)      1: cg:   `-> blkio//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/tasks
(00.153153)      1: cg:   `-> cpu//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/tasks
(00.153197)      1: cg:   `-> cpuacct//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/tasks
(00.153213)      1: cg:   `-> cpuset//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/tasks
(00.153227)      1: cg:   `-> devices//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/tasks
(00.153243)      1: cg:   `-> freezer//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/tasks
(00.153270)      1: cg:   `-> hugetlb//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/tasks
(00.153283)      1: cg:   `-> memory//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/tasks
(00.153296)      1: cg:   `-> openrc//docker/tasks
(00.153307)      1: cg:   `-> systemd//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/tasks
(00.153319)      1: cg:   `-> net_cls//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/tasks
(00.153331)      1: cg:   `-> net_prio//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/tasks
(00.153344)      1: cg:   `-> perf_event//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/tasks
(00.153364)      1: cg:   `-> pids//docker/59a0bde50ff53873e5005efc3a24f21c3d3f71f24093f2dab7a2d672093b22ea/tasks
(00.153417)      1: Calling restore_sid() for init
(00.153423)      1: Restoring 1 to 1 sid
(00.153493)      1: Mount procfs in crtools-proc.egpopJ
(00.197815)      1: Collecting 41/37 (flags 2)
(00.197848)      1: No tty-info.img image
(00.197854)      1:  `- ... done
(00.197857)      1: Collecting 42/51 (flags 0)
(00.197863)      1: No tty-data.img image
(00.197870)      1:  `- ... done
(00.197873)      1: Restoring namespaces 1 flags 0x6c028000
(00.197890)      1: No netns-9.img image
(00.197895)      1: No netdev-9.img image
(00.197946)      1: No ifaddr-9.img image
(00.197953)      1: No route-9.img image
(00.197958)      1: No route6-9.img image
(00.197963)      1: No rule-9.img image
(00.197969)      1: No iptables-9.img image
(00.197972)      1: Error (criu/include/image.h:144): BUG at criu/include/image.h:144
(00.198091) Error (criu/cr-restore.c:1277): 5946 killed by signal 127: Unknown signal
(00.339895) Error (criu/mount.c:2980): mnt: Can't remove the directory /tmp/.criu.mntns.PiahPD: No such file or directory
(00.339921) Error (criu/cr-restore.c:2145): Restoring FAILED.

@alanruttenberg
Copy link
Author

You could modify the container to add an infinite sleep, and then try starting the container with --restart=always.

If I understand this, it means that if docker is restarted, the container will restart, but not from the checkpoint, yes?

I want to use checkpoint because I have java systems that take a long time to initialize - I work with logic systems implemented in java and initial reasoning to prepare for making queries can be very time consuming. There's no easy way to serialize the state. In the idea case I would want to do something like docker commit but have a checkpoint saved with the commit, and set things so that containers made from the image automatically start from the check-pointed state. Having things wrapped in the image means that I could easily run multiple containers with the same start conditions, and be able to easily distribute. The typical scenario would then be something like using the container to quickly run a query interactively, without paying the startup costs.

I'm fairly new to docker. If you know where I might follow discussion of docker's CRIU's implementation plans for it, perhaps you could point me at it so I can get an idea whether things might be heading that way.

@alanruttenberg
Copy link
Author

@ghost
Copy link

ghost commented Oct 6, 2017

@alanruttenberg, I ran into this issue on checkpointing. I believe it has to do with being unable to restore the TCP sockets, it was alleviated for me by setting the network adapter type to Host

@alanruttenberg
Copy link
Author

Thanks for this! This works for me too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants