<div dir="ltr">OK, i<span lang="en"><span></span><span>'m going to test</span> <span>and</span> <span>see. </span></span>Thank you so much. <br></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-24 17:02 GMT+01:00 Ross Boucher <span dir="ltr"><<a href="mailto:rboucher@gmail.com" target="_blank">rboucher@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes. Docker will download the "image" called busybox (a very simply linux image), and it will run the command that follows, which will just print a counter every 3 seconds. You can see the output by running "docker logs <id>"</div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 24, 2015 at 11:00 AM Thouraya TH <<a href="mailto:thouraya87@gmail.com" target="_blank">thouraya87@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span>OK.<br>and about this instruction: <br></span></div></div><div dir="ltr"><div><span><br>busybox:latest
/bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 3;
done'<br><br></span></div></div><div dir="ltr"><div><span></span></div><span>This process will run inside the container </span><span>"test-container" ? That's it ?<br></span></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-24 16:57 GMT+01:00 Ross Boucher <span dir="ltr"><<a href="mailto:rboucher@gmail.com" target="_blank">rboucher@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, it creates a container named "test-container". You can omit the name and just use the id returned in future commands. Docker will use "libcontainer" (now known as runc) by default, which is its own container engine.</div><div><div><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 24, 2015 at 10:54 AM Thouraya TH <<a href="mailto:thouraya87@gmail.com" target="_blank">thouraya87@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span lang="en"><span>Ok, I</span><span>'m going to test</span> <span>and</span> <span>see. <br></span></span></div><span lang="en"><span>I have already CRIU installed. <br><br></span></span>Please, i have a question about this:</div><div dir="ltr"><br><br> docker-1.9.0-dev run -d --name <b>test-container</b> busybox:latest
/bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 3;
done'<div><br></div></div><div dir="ltr"><div><u>With this instruction:<br><br></u> i will create a docker container named test-container ? what is the virtualization technology it uses? <br><br><i>Mr Saied said: Docker can optionally use LXC as its execution driver to create containers. However, by default, Docker does not use LXC.<br></i><i>If you simply google "docker default execution driver", it will give you
a bunch of useful links. Here's the first one for your easy reference:</i><div><i><a href="http://blog.docker.com/2014/03/docker-0-9-introducing-execution-drivers-and-libcontainer/" target="_blank">http://blog.docker.com/2014/03/docker-0-9-introducing-execution-drivers-and-libcontainer/</a><br><br></i></div></div></div><div dir="ltr"> <br><span lang="en"><span>Thanks a lot for help.<br><br></span></span></div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-24 16:29 GMT+01:00 Ross Boucher <span dir="ltr"><<a href="mailto:rboucher@gmail.com" target="_blank">rboucher@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">There's not really a guide available at this point. Very roughly, here's what you need to do:<div><br></div><div>Install criu somewhere in your PATH, and install libprotobuf (though I don't know exactly where it needs to go)?</div><div><br></div><div>In one terminal, start the docker daemon with something like:</div><div>> docker-1.9.0-dev -dD<br></div><div><br></div><div>in another terminal, you can now run a container, e.g. </div><div>> docker-1.9.0-dev run -d --name test-container busybox:latest /bin/sh -c 'i=0; while true; do echo $i; i=$(expr $i + 1); sleep 3; done'</div><div><br></div><div>now, you can checkpoint and restore:</div><div>> docker-1.9.0-dev checkpoint <span style="line-height:1.5">test-container</span></div><div><span style="line-height:1.5">> </span> docker-1.9.0-dev<span style="line-height:1.5"> restore </span><span style="line-height:1.5">test-container</span></div><div><span style="line-height:1.5"><br></span></div><div><span style="line-height:1.5">(feel free to rename it "docker" instead of docker-1.9.0-dev)</span></div><div><br></div></div><div><div><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 24, 2015 at 10:24 AM Thouraya TH <<a href="mailto:thouraya87@gmail.com" target="_blank">thouraya87@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
<p class="MsoNormal">Ok Mr Pavel, thank you so much for answer.</p><p class="MsoNormal"><br></p>
<p class="MsoNormal"><span> </span>@<span>Ross
Boucher: Thank you so much for help. <br></span></p><p class="MsoNormal"><span><br></span></p>
<p class="MsoNormal"><span>As mentioned on this link, I have to download
these files:</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span><a href="https://github.com/boucher/docker/releases/download/v1.9.0-experimental-cr.1/criu-1.6-patched" target="_blank"><span style="color:windowtext;text-decoration:none">criu-1.6-patched
</span></a></span></p>
<p class="MsoNormal"><span><a href="https://github.com/boucher/docker/releases/download/v1.9.0-experimental-cr.1/docker-1.9.0-dev" target="_blank"><span style="color:windowtext;text-decoration:none">docker-1.9.0-dev
</span></a></span></p>
<p class="MsoNormal"><span><a href="https://github.com/boucher/docker/releases/download/v1.9.0-experimental-cr.1/libprotobuf-c.so.0" target="_blank"><span style="color:windowtext;text-decoration:none" lang="FR">libprotobuf-c.so.0 </span></a></span><span><span lang="FR"><span> </span></span></span></p>
<p class="MsoNormal"><span><a href="https://github.com/boucher/docker/archive/v1.9.0-experimental-cr.1.zip" target="_blank"><span style="color:windowtext;text-decoration:none" lang="FR">Source code (zip) </span></a></span><span><span lang="FR"></span></span></p>
<p class="MsoNormal"><span><span lang="FR"><a href="https://github.com/boucher/docker/archive/v1.9.0-experimental-cr.1.tar.gz" target="_blank"><span style="color:windowtext;text-decoration:none">Source code
(tar.gz) <br></span></a></span></span></p><p class="MsoNormal"><span><span lang="FR"><a href="https://github.com/boucher/docker/archive/v1.9.0-experimental-cr.1.tar.gz" target="_blank"><span style="color:windowtext;text-decoration:none"><br></span></a></span></span></p>
<p class="MsoNormal"><span><span lang="FR">That’s
it ? <br></span></span></p><p class="MsoNormal"><span><span lang="FR"><br></span></span></p>
<p class="MsoNormal"><span><span lang="EN">I
worked</span></span><span lang="EN"> <span>a lot with</span> <span>CRIU and <a href="https://help.ubuntu.com/12.04/serverguide/lxc.html" target="_blank">https://help.ubuntu.com/12.04/serverguide/lxc.html</a>
</span><span> </span><span>but I am very</span>
<span>beginner</span> <span>with</span> <span>Docker</span>.</span></p><p class="MsoNormal"><br><span lang="EN"></span><span></span></p>
<p class="MsoNormal"><span>How can i install this </span><span><b><span lang="FR"><a href="https://github.com/boucher/docker/releases/download/v1.9.0-experimental-cr.1/docker-1.9.0-dev" target="_blank"><span style="color:windowtext;text-decoration:none" lang="EN-US">docker-1.9.0-dev</span></a></span></b> ? Is there any
howTo ? In fact, I’d like testing Docker with a simple example and then doing
the snapshotting with CRIU.</span></p><p class="MsoNormal"><span><br> </span></p>
<p class="MsoNormal"><span>Kind Regards. <br></span></p><p class="MsoNormal"><span><br></span></p>
</div><div class="gmail_extra"><br><div class="gmail_quote">2015-12-24 15:58 GMT+01:00 Ross Boucher <span dir="ltr"><<a href="mailto:rboucher@gmail.com" target="_blank">rboucher@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, all the info is in that thread. You can try these pre-built binaries if you like:<div><a href="https://github.com/boucher/docker/releases/tag/v1.9.0-experimental-cr.1" target="_blank">https://github.com/boucher/docker/releases/tag/v1.9.0-experimental-cr.1</a><br></div><div><br></div></div><div><div><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 24, 2015 at 9:36 AM Pavel Emelyanov <<a href="mailto:xemul@parallels.com" target="_blank">xemul@parallels.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 12/24/2015 05:27 PM, Thouraya TH wrote:<br>
> Hi all,<br>
><br>
><br>
> As Iknow, there is a work on using CRIU with Docker. I want to know, please, the progress<br>
> if it is possible (Online publications? Etc..).<br>
<br>
Everything about it happens here: <a href="https://github.com/docker/docker/pull/13602" rel="noreferrer" target="_blank">https://github.com/docker/docker/pull/13602</a> and you're<br>
welcome to join :)<br>
<br>
> I'd like to test criu with Docker. Can i do that ? Is there any tutorial ?<br>
<br>
Please, say hello to Ross and Hui (I added them in Cc). They're one of main guys in this area :)<br>
<br>
-- Pavel<br>
<br>
</blockquote></div>
</div></div></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div>