{"action":"created","issue":{"url":"https://api.github.com/repos/xemul/criu/issues/3","labels_url":"https://api.github.com/repos/xemul/criu/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/xemul/criu/issues/3/comments","events_url":"https://api.github.com/repos/xemul/criu/issues/3/events","html_url":"https://github.com/xemul/criu/issues/3","id":77039519,"number":3,"title":"Restoring Docker container with docker_cr.sh failed","user":{"login":"kimh","id":924390,"avatar_url":"https://avatars.githubusercontent.com/u/924390?v=3","gravatar_id":"","url":"https://api.github.com/users/kimh","html_url":"https://github.com/kimh","followers_url":"https://api.github.com/users/kimh/followers","following_url":"https://api.github.com/users/kimh/following{/other_user}","gists_url":"https://api.github.com/users/kimh/gists{/gist_id}","starred_url":"https://api.github.com/users/kimh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kimh/subscriptions","organizations_url":"https://api.github.com/users/kimh/orgs","repos_url":"https://api.github.com/users/kimh/repos","events_url":"https://api.github.com/users/kimh/events{/privacy}","received_events_url":"https://api.github.com/users/kimh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-16T13:26:13Z","updated_at":"2015-05-18T13:35:17Z","closed_at":null,"body":"I tried to ckeckpoint/restore a container with [docker_cr.sh](http://criu.org/Docker#Help_Script). Checkpoint succeeded but I couldn't make restarting works.\r\n\r\nHere is my env.\r\n\r\nUbuntu: 14.04 (vagrant)\r\n\r\nCRIU: Compiled from source at https://github.com/xemul/criu/commit/61c1936ed953813275e35ac69b48a4b0b41dc29f\r\n\r\nDocker: Compiled from source at https://github.com/SaiedKazemi/docker/commit/62ce554ce42e3ad0f5c4c69896685903ecbd1ffc\r\n\r\nI could checkpoint/restore a simple bash process with compiled criu, so I believe installation is done properly.\r\n\r\nHere is what I did.\r\n\r\n```\r\n# Run a docker container in the example\r\nroot@vagrant-ubuntu-trusty:~# export CID=$(docker run -d busybox:latest /bin/sh -c 'i=0; while true; do echo $i >> /foo; i=$(expr $i + 1\r\n); sleep 3; done')\r\n\r\n# Make sure it's running\r\nroot@vagrant-ubuntu-trusty:~# docker ps\r\nCONTAINER ID        IMAGE               COMMAND                CREATED             STATUS              PORTS               NAMES\r\ncb8fd3d21034        busybox:latest      /bin/sh -c 'i=0; whi   3 seconds ago       Up 2 seconds                            berserk_rosalind\r\n\r\n# Checkpoint container succeeds\r\nroot@vagrant-ubuntu-trusty:~/criu/contrib# ./docker_cr.sh -c -v $CID\r\ndocker binary: docker\r\ndockerinit binary: /var/lib/docker/init/dockerinit-1.0.1\r\ncriu binary: criu\r\nimage directory: /var/lib/docker/criu_img/cb8fd3d210342905c03f762bf8fccff366ef63327bf2429ead916683daa5122c\r\ncontainer root directory: /var/lib/docker/aufs/mnt/cb8fd3d210342905c03f762bf8fccff366ef63327bf2429ead916683daa5122c\r\n\r\ncriu dump -v4 -D /var/lib/docker/criu_img/cb8fd3d210342905c03f762bf8fccff366ef63327bf2429ead916683daa5122c -o dump.log --manage-cgroups --evasive-devices --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 -t 1426 --root /var/lib/docker/aufs/mnt/cb8fd3d210342905c03f762bf8fccff366ef63327bf2429ead916683daa5122c\r\n\r\n\r\ndump successful\r\n(00.214765) Dumping finished successfully\r\n\r\n# Restoring doesn't succeed, though\r\nroot@vagrant-ubuntu-trusty:~/criu/contrib# ./docker_cr.sh -r -v $CID\r\ndocker binary: docker\r\ndockerinit binary: /var/lib/docker/init/dockerinit-1.0.1\r\ncriu binary: criu\r\nimage directory: /var/lib/docker/criu_img/cb8fd3d210342905c03f762bf8fccff366ef63327bf2429ead916683daa5122c\r\ncontainer root directory: /var/lib/docker/aufs/mnt/cb8fd3d210342905c03f762bf8fccff366ef63327bf2429ead916683daa5122c\r\n\r\nmount -t aufs -o\r\n/var/lib/docker/aufs/diff/cb8fd3d210342905c03f762bf8fccff366ef63327bf2429ead916683daa5122c\r\n/var/lib/docker/aufs/diff/cb8fd3d210342905c03f762bf8fccff366ef63327bf2429ead916683daa5122c-init\r\n/var/lib/docker/aufs/diff/8c2e06607696bd4afb3d03b687e361cc43cf8ec1a4a725bc96e39f05ba97dd55\r\n/var/lib/docker/aufs/diff/6ce2e90b0bc7224de3db1f0d646fe8e2c4dd37f1793928287f6074bc451a57ea\r\n/var/lib/docker/aufs/diff/cf2616975b4a3cba083ca99bc3f0bf25f5f528c3c52be1596b30f60b0b1c37ff\r\nnone\r\n/var/lib/docker/aufs/mnt/cb8fd3d210342905c03f762bf8fccff366ef63327bf2429ead916683daa5122c\r\n\r\ncriu restore -v4 -D /var/lib/docker/criu_img/cb8fd3d210342905c03f762bf8fccff366ef63327bf2429ead916683daa5122c -o restore.log --manage-cgroups --evasive-devices --ext-mount-map /etc/resolv.conf:/var/lib/docker/containers/cb8fd3d210342905c03f762bf8fccff366ef63327bf2429ead916683daa5122c/resolv.conf --ext-mount-map /etc/hosts:/var/lib/docker/containers/cb8fd3d210342905c03f762bf8fccff366ef63327bf2429ead916683daa5122c/hosts --ext-mount-map /etc/hostname:/var/lib/docker/containers/cb8fd3d210342905c03f762bf8fccff366ef63327bf2429ead916683daa5122c/hostname --ext-mount-map /.dockerinit:/var/lib/docker/init/dockerinit-1.0.1 -d --root /var/lib/docker/aufs/mnt/cb8fd3d210342905c03f762bf8fccff366ef63327bf2429ead916683daa5122c --pidfile /var/lib/docker/criu_img/cb8fd3d210342905c03f762bf8fccff366ef63327bf2429ead916683daa5122c/restore.pid\r\n\r\n\r\nrestore failed\r\n(00.106843) Error (cr-restore.c:1221): 1622 exited, status=1\r\n(00.119208) Error (cr-restore.c:1895): Restoring FAILED.\r\n```\r\n\r\nAny ideas how what's wrong? \r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/xemul/criu/issues/comments/103061985","html_url":"https://github.com/xemul/criu/issues/3#issuecomment-103061985","issue_url":"https://api.github.com/repos/xemul/criu/issues/3","id":103061985,"user":{"login":"avagin","id":1049830,"avatar_url":"https://avatars.githubusercontent.com/u/1049830?v=3","gravatar_id":"","url":"https://api.github.com/users/avagin","html_url":"https://github.com/avagin","followers_url":"https://api.github.com/users/avagin/followers","following_url":"https://api.github.com/users/avagin/following{/other_user}","gists_url":"https://api.github.com/users/avagin/gists{/gist_id}","starred_url":"https://api.github.com/users/avagin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avagin/subscriptions","organizations_url":"https://api.github.com/users/avagin/orgs","repos_url":"https://api.github.com/users/avagin/repos","events_url":"https://api.github.com/users/avagin/events{/privacy}","received_events_url":"https://api.github.com/users/avagin/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T13:35:17Z","updated_at":"2015-05-18T13:35:17Z","body":"Could you do one more attempt with this tree https://github.com/avagin/criu/commit/e11f048612d071d1983454f8ed6fe0631c945ea1?"}}