<div dir="ltr">thank you very much , this patch is very helpful <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 2, 2015 at 9:28 PM, Saied Kazemi <span dir="ltr">&lt;<a href="mailto:saied@google.com" target="_blank">saied@google.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Mona,<br>
<br>
Pertaining to my previous reply, I just sent a patch for docker_cr.sh<br>
helper script to dynamically determine the right dockerinit file.  It<br>
may be easier for you to apply this patch and use it going forward.<br>
<span class="HOEnZb"><font color="#888888"><br>
--Saied<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
On Fri, Jan 2, 2015 at 9:43 AM, Saied Kazemi &lt;<a href="mailto:saied@google.com">saied@google.com</a>&gt; wrote:<br>
&gt; Hi Mona,<br>
&gt;<br>
&gt; As Pavel pointed out, the error is due to not being able to bind mount<br>
&gt; an external file.  But this is not because a the --ext-mount-map<br>
&gt; command line option is missing.  It&#39;s because docker_cr.sh does not<br>
&gt; know the dockerinit file name in /var/lib/docker/init (by default, it<br>
&gt; assume Docker 1.0.0).<br>
&gt;<br>
&gt; Since you are running Docker 1.4, you need to change the following<br>
&gt; BIND_MOUNT line in docker_cr.sh to reflect what you have in<br>
&gt; /var/lib/docker/init:<br>
&gt;<br>
&gt; # since older versions of docker bind mount /.dockerinit but<br>
&gt; # the path cannot be queried by docker inspect, we have to<br>
&gt; # hard code it here<br>
&gt; BIND_MOUNT[/.dockerinit]=&quot;${DOCKER_HOME}/init/dockerinit-1.0.0&quot;<br>
&gt;<br>
&gt; Hope this helps.<br>
&gt;<br>
&gt; --Saied<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Dec 31, 2014 at 2:28 AM, Pavel Emelyanov &lt;<a href="mailto:xemul@parallels.com">xemul@parallels.com</a>&gt; wrote:<br>
&gt;&gt; On 12/31/2014 04:36 AM, mona kashkoush wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; i tried to  do a live migration for docker container using CRIU 1.4 but dumping failed and this error appeared<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; $  criu dump --tree &lt;pid&gt; --images-dir &lt;path-to-existing-directory&gt; --leave-stopped<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Error (mount.c:624): 125:./etc/hosts doesn&#39;t have a proper root mount<br>
&gt;&gt;&gt; Error (files-reg.c:764): Unaccessible path opened 52:21244, need 5:1029<br>
&gt;&gt;&gt; Error (cr-dump.c:1601): Dump files (pid: 3906) failed with -1<br>
&gt;&gt;&gt; Error (cr-dump.c:1964): Dumping FAILED.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; and when i used the automated script &quot;docker_cr.sh &quot; for docker container migration , this succeeded for<br>
&gt;&gt;&gt; dumping  but failed for restoring and this error appeared<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; $ /src/criu-1.4/contrib/docker_cr.sh -r -v &lt;container_id&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; restore failed<br>
&gt;&gt;&gt; (00.072030)      1: Error (mount.c:1543): Can&#39;t mount at ./.dockerinit: No such file or directory<br>
&gt;&gt;<br>
&gt;&gt; Hm... This looks like some missed --ext-mount-map thing. Can you find out the<br>
&gt;&gt; exact command line docker_cr.sh calls CRIU with?<br>
&gt;&gt;<br>
&gt;&gt; Hopefully Saied (in Cc) can also advise something.<br>
&gt;&gt;<br>
&gt;&gt;&gt; (00.072076) Error (cr-restore.c:1838): Restoring FAILED.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; * this is information about docker which i used<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Storage Driver: aufs<br>
&gt;&gt;&gt;  Root Dir: /var/lib/docker/aufs<br>
&gt;&gt;&gt;  Dirs: 67<br>
&gt;&gt;&gt; Execution Driver: native-0.2<br>
&gt;&gt;&gt; Kernel Version: 3.13.0-43-generic<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; thanks for your time<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Mona Salah<br>
&gt;&gt;&gt; Research Assistant<br>
&gt;&gt;&gt; IRI institute<br>
&gt;&gt;&gt; The City of Scientific Research and Technology Applications,Alex , Egypt<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; CRIU mailing list<br>
&gt;&gt;&gt; <a href="mailto:CRIU@openvz.org">CRIU@openvz.org</a><br>
&gt;&gt;&gt; <a href="https://lists.openvz.org/mailman/listinfo/criu" target="_blank">https://lists.openvz.org/mailman/listinfo/criu</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font size="4" face="georgia, serif">Mona Salah<br>Research Assistant <br></font><div><font size="4" color="#000000" face="georgia, serif">IRI institute </font></div></div></div><div><div dir="ltr"><div><font size="4" color="#000000" face="georgia, serif">The City of Scientific Research and Technology Applications,Alex , Egypt  </font></div></div></div></div></div>
</div>