[CRIU] external mountpoint issue for docker

Pavel Emelyanov xemul at parallels.com
Tue Jun 3 07:43:33 PDT 2014


On 06/03/2014 06:31 PM, Bing X wrote:
> I didn't get dump.log under /dump dir, based on the screen output, it fails at run_ns.sh. so the unshare is unsuccessful.

So what's the problem you're currently having? You cannot dump a process
tree or you cannot create the process tree to dump?

> I just wondered if I wrongly modified the root (should be bind, pivotroot, and unshare). I saw that the sample scripts
> (run.sh, run_ns.sh) assumes the current dir is the root should be operated, so I changed it to my docker root dir (you
> can see its real dir from mountinfo). 
> 
> Am I wrong on this?

I don't understand what you're trying to do, in the first place.

> Sorry for all these tedious work and thanks a lot!
> 
> Bing
> 
> 
> 
> 
> On Tue, Jun 3, 2014 at 10:20 AM, Pavel Emelyanov <xemul at parallels.com <mailto:xemul at parallels.com>> wrote:
> 
>     On 06/02/2014 07:53 PM, Bing X wrote:
>     > Hi, I'm modifying scripts under test/mounts/ext for my docker container dump.
>     >
>     >  But always failed as can't unshared ns.
> 
>     Please show the dump logs collected with -v4 option.
> 
>     > I attached my changed run.sh, run_ns.sh, run_wait.sh and /proc/self/mountinfo, please help me take a look on which part is incorrect.
>     >
>     > The following is the results of ps -axf
>     >  2537 ?        Ss     0:00 /bin/sh -e /proc/self/fd/9
>     >  2539 ?        Sl     0:14  \_ /usr/bin/docker.io <http://docker.io> <http://docker.io> -d
>     >  6010 ?        Ss     0:00      \_ /bin/sh -c /usr/sbin/sshd -D
>     >  6043 ?        S      0:00          \_ /usr/sbin/sshd -D
>     >
>     >
>     >
>     >
>     > --
>     > Thanks
>     > Bing
>     >
>     >
>     > _______________________________________________
>     > CRIU mailing list
>     > CRIU at openvz.org <mailto:CRIU at openvz.org>
>     > https://lists.openvz.org/mailman/listinfo/criu
>     >
> 
> 
> 
> 
> 
> -- 
> Thanks
> Bing




More information about the CRIU mailing list