<div dir="ltr">ok, I make $odir as a new mountpoint with the command:<div><br></div><div>mount -t tmpfs none "./$odir"</div><div><br></div><div>then run privot_root command:</div><div><br></div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">pivot_root "/var/lib/docker/containers/</span><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">a4aec40cc802b258990c538852387b</span><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">14ec7f7404ca397c66f2ee6ff9862f</span><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">4a16/root/" "./$odir</span><br>
</div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">still get the same error: Invalid argument.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">am I wrong on making $odir a new mountpoint? if so, what's the correct command?</span></div>
<div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">thanks,</span></div><div><span style="font-family:arial,sans-serif;font-size:12.800000190734863px">Bing</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 5, 2014 at 4:53 AM, Pavel Emelyanov <span dir="ltr"><<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 06/05/2014 01:02 AM, Bing X wrote:<br>
> Then am I wrong on the root dir of my container? Or, if I'm right, how can I pivot_root it to $odir?<br>
<br>
</div>Make $odir being a mount point.<br>
<br>
> thanks,<br>
> Bing<br>
<div class="HOEnZb"><div class="h5">><br>
><br>
> On Wed, Jun 4, 2014 at 4:32 PM, Pavel Emelyanov <<a href="mailto:xemul@parallels.com">xemul@parallels.com</a> <mailto:<a href="mailto:xemul@parallels.com">xemul@parallels.com</a>>> wrote:<br>
><br>
> On 06/04/2014 10:27 PM, Bing X wrote:<br>
> > OK, I find the error occurs at the line pivot_root<br>
> ><br>
> > I modified this line to to move my container root to "./$odir"<br>
> ><br>
> > my command is:<br>
> ><br>
> > pivot_root "/var/lib/docker/containers/a4aec40cc802b258990c538852387b14ec7f7404ca397c66f2ee6ff9862f4a16/root/" "./$odir"<br>
> ><br>
> > the error is: pivot_root: Invalid argument<br>
> ><br>
> > any suggestion what's happening here?<br>
><br>
> The pivot_root() only works if the target directory is a mount point.<br>
><br>
> > thanks,<br>
> > Bing<br>
><br>
><br>
><br>
><br>
> --<br>
> Thanks<br>
> Bing<br>
<br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Thanks</div><div>Bing</div>
</div>