{"action":"created","issue":{"url":"https://api.github.com/repos/xemul/criu/issues/192","repository_url":"https://api.github.com/repos/xemul/criu","labels_url":"https://api.github.com/repos/xemul/criu/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/xemul/criu/issues/192/comments","events_url":"https://api.github.com/repos/xemul/criu/issues/192/events","html_url":"https://github.com/xemul/criu/issues/192","id":165896810,"number":192,"title":"Simple dump/restore on docker using external CRIU results in errors","user":{"login":"koliaskostas","id":9149137,"avatar_url":"https://avatars.githubusercontent.com/u/9149137?v=3","gravatar_id":"","url":"https://api.github.com/users/koliaskostas","html_url":"https://github.com/koliaskostas","followers_url":"https://api.github.com/users/koliaskostas/followers","following_url":"https://api.github.com/users/koliaskostas/following{/other_user}","gists_url":"https://api.github.com/users/koliaskostas/gists{/gist_id}","starred_url":"https://api.github.com/users/koliaskostas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koliaskostas/subscriptions","organizations_url":"https://api.github.com/users/koliaskostas/orgs","repos_url":"https://api.github.com/users/koliaskostas/repos","events_url":"https://api.github.com/users/koliaskostas/events{/privacy}","received_events_url":"https://api.github.com/users/koliaskostas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xemul/criu/labels/docker","name":"docker","color":"fef2c0"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-07-15T23:52:39Z","updated_at":"2016-07-25T13:07:01Z","closed_at":"2016-07-25T13:07:01Z","body":"Is it possible that the page https://criu.org/Docker could be outdated?\r\n\r\nMy settings\r\n-----------\r\nKernel: 4.4.0-21-generic\r\nDebian 16.04\r\nCRIU: 2.0\r\nDocker: 1.11.2\r\n\r\ncostas@ubuntu1:~$ **docker pull debian**\r\ncostas@ubuntu1:~$ **sudo ls /var/lib/docker/aufs/mnt/**\r\n_faa276a6aedfba89f60e7f7afd2dd51c43e09c81b8f0b09491a4f83a24d2e7ed_\r\ncostas@ubuntu1:~$ **sudo ls /var/lib/docker/aufs/diff/**\r\n_faa276a6aedfba89f60e7f7afd2dd51c43e09c81b8f0b09491a4f83a24d2e7ed_\r\ncostas@ubuntu1:~$ **sudo ls /var/lib/docker/containers/**\r\n\r\ncostas@ubuntu1:~$ **docker run -d debian /bin/bash -c 'i=0; while true; do echo $i >> counter.log; i=$(expr $i + 1); sleep 3; done'**\r\n_1a80a351851e6121f7f04b0770f25ca0a3215cba9181173b9470eb7e9cda369a_\r\ncostas@ubuntu1:~$ **sudo ls -la /var/lib/docker/aufs/mnt/**\r\n_total 20\r\ndrwx------ 5 root root 4096 Jul 15 19:00 .\r\ndrwx------ 5 root root 4096 Jul 15 13:08 ..\r\ndrwxr-xr-x 2 root root 4096 Jul 15 19:00 d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6\r\ndrwxr-xr-x 2 root root 4096 Jul 15 19:00 d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6-init\r\ndrwxr-xr-x 2 root root 4096 Jul 15 18:57 faa276a6aedfba89f60e7f7afd2dd51c43e09c81b8f0b09491a4f83a24d2e7ed_\r\n\r\ncostas@ubuntu1:~$ **sudo ls -la /var/lib/docker/aufs/diff/**\r\n_total 20\r\ndrwx------  5 root root 4096 Jul 15 19:00 .\r\ndrwx------  5 root root 4096 Jul 15 13:08 ..\r\ndrwxr-xr-x  4 root root 4096 Jul 15 19:00 d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6\r\ndrwxr-xr-x  6 root root 4096 Jul 15 19:00 d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6-init\r\ndrwxr-xr-x 21 root root 4096 Jul 15 18:57 faa276a6aedfba89f60e7f7afd2dd51c43e09c81b8f0b09491a4f83a24d2e7ed_\r\n\r\ncostas@ubuntu1:~$ **sudo ls -la /var/lib/docker/containers/**\r\n_total 12\r\ndrwx------ 3 root root 4096 Jul 15 19:00 .\r\ndrwx--x--x 9 root root 4096 Jul 15 13:08 ..\r\ndrwx------ 3 root root 4096 Jul 15 19:00 1a80a351851e6121f7f04b0770f25ca0a3215cba9181173b9470eb7e9cda369a_\r\n\r\ncostas@ubuntu1:~$ **docker ps -q | sudo xargs docker inspect --format '{{.State.Pid}}, {{.ID}}'**\r\n_1449, 1a80a351851e6121f7f04b0770f25ca0a3215cba9181173b9470eb7e9cda369a_\r\n\r\ncostas@ubuntu1:~$ **sudo criu dump -o dump.log -v4 -t 1449 -D check --root /var/lib/docker/aufs/mnt/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6 --ext-mount-map /etc/resolv.conf:/etc/resolv.conf --ext-mount-map /etc/hosts:/etc/hosts --ext-mount-map /etc/hostname:/etc/hostname --ext-mount-map /.dockerinit:/.dockerinit --manage-cgroups --evasive-devices**\r\n\r\nresults into an error which is described into this log\r\n[dump.log.zip](https://github.com/xemul/criu/files/366997/dump.log.zip)\r\n.\r\n\r\nSo I am forced to do:\r\n\r\ncostas@ubuntu1:~$ **sudo criu dump -o dump.log -v4 -t 1449 -D check --root /var/lib/docker/aufs/mnt/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6 --ext-mount-map /etc/resolv.conf:/etc/resolv.conf --ext-mount-map /etc/hosts:/etc/hosts --ext-mount-map /etc/hostname:/etc/hostname --ext-mount-map /.dockerinit:/.dockerinit --ext-mount-map /sys/fs/cgroup/memory:/sys/fs/cgroup/memory --ext-mount-map /sys/fs/cgroup/cpu,cpuacct:/sys/fs/cgroup/cpu,cpuacct --ext-mount-map /sys/fs/cgroup/freezer:/sys/fs/cgroup/freezer --ext-mount-map /sys/fs/cgroup/cpuset:/sys/fs/cgroup/cpuset --ext-mount-map /sys/fs/cgroup/perf_event:/sys/fs/cgroup/perf_event --ext-mount-map /sys/fs/cgroup/devices:/sys/fs/cgroup/devices --ext-mount-map /sys/fs/cgroup/hugetlb:/sys/fs/cgroup/hugetlb --ext-mount-map /sys/fs/cgroup/net_cls,net_prio:/sys/fs/cgroup/net_cls,net_prio --ext-mount-map /sys/fs/cgroup/blkio:/sys/fs/cgroup/blkio --ext-mount-map /sys/fs/cgroup/pids:/sys/fs/cgroup/pids --ext-mount-map /sys/fs/cgroup/systemd:/sys/fs/cgroup/systemd --manage-cgroups --evasive-devices**\r\n\r\n\r\nThen according to the same tutorial I have to reconstruct the filesystem. The syntax of the command contained in the tutorial is wrong so I have to give:\r\n\r\ncostas@ubuntu1:~$ **sudo mount -t aufs -o br=\\\r\n/var/lib/docker/aufs/diff/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6:\\\r\n/var/lib/docker/aufs/diff/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6-init:\\\r\n/var/lib/docker/aufs/diff/faa276a6aedfba89f60e7f7afd2dd51c43e09c81b8f0b09491a4f83a24d2e7ed \\\r\nnone /var/lib/docker/aufs/mnt/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6**\r\n\r\n\r\nwhich seems to do the job.\r\n\r\nTo restore I give:\r\ncostas@ubuntu1:~$ **sudo criu restore -o restore.log -v4 -d -D check --root /var/lib/docker/aufs/mnt/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6 --ext-mount-map /etc/resolv.conf:/var/lib/docker/containers/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6/resolv.conf --ext-mount-map /etc/hosts:/var/lib/docker/containers/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6/hosts --ext-mount-map /etc/hostname:/var/lib/docker/containers/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6/hostname --ext-mount-map /.dockerinit:/var/lib/docker/init/dockerinit-1.0.0 --ext-mount-map /sys/fs/cgroup/memory:/var/lib/docker/containers/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6/sys/fs/cgroup/memory --ext-mount-map /sys/fs/cgroup/cpu,cpuacct:/var/lib/docker/containers/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6/sys/fs/cgroup/cpu,cpuacct --ext-mount-map /sys/fs/cgroup/freezer:/var/lib/docker/containers/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6/sys/fs/cgroup/freezer --ext-mount-map /sys/fs/cgroup/cpuset:/var/lib/docker/containers/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6/sys/fs/cgroup/cpuset --ext-mount-map /sys/fs/cgroup/perf_event:/var/lib/docker/containers/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6/sys/fs/cgroup/perf_event --ext-mount-map /sys/fs/cgroup/devices:/var/lib/docker/containers/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6/sys/fs/cgroup/devices --ext-mount-map /sys/fs/cgroup/hugetlb:/var/lib/docker/containers/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6/sys/fs/cgroup/hugetlb --ext-mount-map /sys/fs/cgroup/net_cls,net_prio:/var/lib/docker/containers/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6/sys/fs/cgroup/net_cls,net_prio --ext-mount-map /sys/fs/cgroup/blkio:/var/lib/docker/containers/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6/sys/fs/cgroup/blkio --ext-mount-map /sys/fs/cgroup/pids:/var/lib/docker/containers/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6/sys/fs/cgroup/pids --ext-mount-map /sys/fs/cgroup/systemd:/var/lib/docker/containers/d84b62ea92cc73d6691c27b4172b3bc431b25cac134c7de171ccbc4f6cde7ba6/sys/fs/cgroup/systemd --manage-cgroups --evasive-devices**\r\n\r\nwhich results in the error contained in the log\r\n[restore.log.zip](https://github.com/xemul/criu/files/366998/restore.log.zip)\r\n.\r\n\r\n\r\nAny pointers with the issues or anything I could study to find my way?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/xemul/criu/issues/comments/234947682","html_url":"https://github.com/xemul/criu/issues/192#issuecomment-234947682","issue_url":"https://api.github.com/repos/xemul/criu/issues/192","id":234947682,"user":{"login":"xemul","id":4498177,"avatar_url":"https://avatars.githubusercontent.com/u/4498177?v=3","gravatar_id":"","url":"https://api.github.com/users/xemul","html_url":"https://github.com/xemul","followers_url":"https://api.github.com/users/xemul/followers","following_url":"https://api.github.com/users/xemul/following{/other_user}","gists_url":"https://api.github.com/users/xemul/gists{/gist_id}","starred_url":"https://api.github.com/users/xemul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xemul/subscriptions","organizations_url":"https://api.github.com/users/xemul/orgs","repos_url":"https://api.github.com/users/xemul/repos","events_url":"https://api.github.com/users/xemul/events{/privacy}","received_events_url":"https://api.github.com/users/xemul/received_events","type":"User","site_admin":false},"created_at":"2016-07-25T13:07:01Z","updated_at":"2016-07-25T13:07:01Z","body":"I think one problem per issue would be better :)"}}
{"actor":{"display_login":"xemul"}}