[CRIU] CRIU in Docker for Mac

Andrei Vagin avagin at virtuozzo.com
Tue Jan 24 19:37:50 PST 2017


On Tue, Jan 24, 2017 at 11:17:28PM +0000, Ross Boucher wrote:
> It seems that this function probably isn't implemented in musl:
> https://git.musl-libc.org/cgit/musl/tree/src/sched/sched_getscheduler.c

Uhuuuu. musl is so lightweight and fast!!!!!
https://git.musl-libc.org/cgit/musl/tree/src/sched/sched_getparam.c

Ross, could you try out this patch:
https://github.com/avagin/criu/commit/265e9fc138f98b742a68b6991225f28d3c99f9b5

Thanks,
Andrei

> 
> Is there any hope for a workaround?
> 
> On Tue, Jan 24, 2017 at 6:09 PM Ross Boucher <rboucher at gmail.com> wrote:
> 
>     Installing ip6tables got a bit further, but now it seems to fail possibly
>     on sched_getscheduler:
> 
>     (00.032508) Error (criu/cr-dump.c:134): Can't get sched policy for 2337:
>     Function not implemented
> 
>     Full log: https://gist.github.com/boucher/5c8edcbf0c7f9d9e39ed1d74c09440e5
> 
> 
>     On Tue, Jan 24, 2017 at 5:53 PM Ross Boucher <rboucher at gmail.com> wrote:
> 
>         Hey everyone,
> 
>         Since checkpoint/restore has shipped in experimental mode for Docker, I
>         thought I'd try to get it working with Docker for Mac. I think this
>         should be possible, since it seems building for Alpine linux has
>         already been taken care of, but I haven't gotten it working just yet. 
> 
>         What I have done is install CRIU 2.9, from the apk testing repository
>         for alpine linux, in the d4m vm[1], then run a simple checkpoint on a
>         busybox container. Here's the dump log:
> 
>         https://gist.github.com/boucher/2ac2de1d80ab59bce518d108ec8d0371
> 
>         Seems that some network script isn't working, but I'm not sure if the
>         log is telling me that its an RPC script.
> 
>         Thanis,
>         Ross
> 
> 
>         [1]: You can access the vm with screen:
> 
>         screen ~/Library/Containers/com.docker.docker/Data/
>         com.docker.driver.amd64-linux/tty
> 
> 

> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu



More information about the CRIU mailing list