Can't get checkpoint working

Hello,

I am new to docker so perhaps missing something basic.
I’m trying to follow the very basic steps (https://criu.org/Docker)
but can’t make the check-pointing working…

Here is what I do:
systemctl restart docker
$ docker run -d --name looper --security-opt seccomp:unconfined busybox
/bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 1; done’
43502478fe207b7cb4bc5b8f2c64ec16ef09051378858691a6d82c090df97a50
$ docker logs looper ; docker checkpoint create looper checkpoint1
0
1
2

167
checkpoint1

On this stage I expected the container to exit but it keeps running…
docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
43502478fe20 busybox “/bin/sh -c 'i=0; wh…” 3 minutes ago Up 3 minutes looper

$docker logs looper
1
2

247

Now I try to restore the state
$ docker start --checkpoint checkpoint1 looper && echo OK && docker logs looper
OK
1
2
3

167
168
169
170
171
172
173
174

300
301

So it seems the restore process just did not happen.
I’d expect the output star from 167 (the last number before checkpoint creation stage),

Am I missing something?
Some details:

$ docker --version
Docker version 17.11.0-ce, build 1caf76c

$ uname -a
Linux vova-VirtualBox 4.10.0-37-generic #41~16.04.1-Ubuntu SMP Fri Oct 6 22:42:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION=“Ubuntu 16.04.2 LTS”

Thanks in advance,
Vladimir.

Hi,

Were you able to over come the issue? You need to run the command -‘docker checkpoint create looper checkpoint1’. Once you run this command, the container freezes and once the command ‘docker start --checkpoint checkpoint1 looper’ is run it will continue the process state.

It works for the single host, but I am unable to get the migration done to different host.