[CRIU] [QUESTION] Restore a docker container

Cyrill Gorcunov gorcunov at gmail.com
Sat Jan 12 13:34:06 MSK 2019


On Wed, Jan 09, 2019 at 09:20:32AM +0800, Jasminetion wrote:
>    Hi, everyone:
>      I'm doing some interesting with CRIU. But I'm  in trouble now. I have
>    two questions:
>      1. How can I add a new process to the container during restoring a
>    docker container? And where should I modify the  source code?

Process tree is read from the image, thus you either have to modify image
itself either inside criu source code

https://github.com/checkpoint-restore/criu/blob/criu-dev/criu/cr-restore.c#L2392

>      2. Is it possible to start a new process with same binary during
>    restoring a docker container, and restore only part of the process in the
>    address space of new process? 

Hardly, it will require a lot of work to do.


More information about the CRIU mailing list