[CRIU] Not able to checkpoint docker container with criu-1.3-rc2

Saied Kazemi saied at google.com
Tue Aug 5 21:35:23 PDT 2014


Hi Pradeep,

The official response should come from the CRIU development team but since
I have been looking at this issue I can provide some info.

Dumping and restoring Docker containers using CRIU as-is is not possible at
the moment.

As you noted, work is in progress, but it will take some time to finish.
 So far, support for external bind mounts (e.g., /etc/hosts for Docker
containers) and restoration of control groups has been added and is already
available in 1.3-rc2.

If you use the VFS graph driver (as opposed to the default AUFS), it's
possible to dump and restore a container with CRIU using the external bind
mount options.  However, currently there is no way to tell Docker that a
container was restored, so "docker ps" would show its status as exited.

Work is underway to add AUFS support to CRIU as well as checkpoint/restore
support in libcontainer and Docker.  Ultimately checkpointing and restoring
Docker containers should be done by Docker itself (e.g., docker checkpoint,
docker restore) with a call to CRIU for doing the actual checkpoint and
restore operation.

Hope this helps...

--Saied




On Tue, Aug 5, 2014 at 3:19 PM, Pradeep Padala <ppadala at gmail.com> wrote:

> Hi,
>
> I tried checkpointing the docker container with the latest version of criu
> and got the following error.
>
> ./criu dump -t 15814 --images-dir /tmp/docker
> Error (mount.c:449): 225:./dev/console doesn't have a proper root mount
> Error (cr-dump.c:1882): Dumping FAILED.
>
> I saw that there's been some progress on this lately and was not sure, if
> this has been fixed yet. Is there a timeframe on when the docker container
> c/r will be supported?
>
> Let me know.
>
> Thanks,
> Pradeep
>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvz.org/pipermail/criu/attachments/20140805/71242df5/attachment-0001.html>


More information about the CRIU mailing list