<p dir="ltr">It seems that the docker service is not running.</p>
<p dir="ltr">Does "systemctl start docker" gave you an error ? <br>
</p>
<div class="gmail_quote">Le 12 mai 2015 02:55, "Gonzalo Odiard" <<a href="mailto:godiard@sugarlabs.org">godiard@sugarlabs.org</a>> a écrit :<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I have installed docker-io<div><br><div>As root:</div><div># dnf install -y docker-io</div><div><div># systemctl start docker.service</div><div># systemctl enable docker.service</div></div><div><br></div><div>Then, with my user I cloned the repo:</div><div>git clone <a href="https://github.com/mikklfr/docker-sugar.git" target="_blank">https://github.com/mikklfr/docker-sugar.git</a><br></div><div>cd docker-sugar/</div><div><div>sh run.sh </div><div><br></div><div>FATA[0000] Post http:///var/run/docker.sock/v1.18/containers/create: dial unix /var/run/docker.sock: no such file or directory. Are you trying to connect to a TLS-enabled daemon without TLS? </div></div><div><br></div><div>Any idea?</div><div><br></div><div>Gonzalo</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 11, 2015 at 6:54 PM, Michaël Ohayon <span dir="ltr"><<a href="mailto:mohayon75@gmail.com" target="_blank">mohayon75@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yes, I'll add an option to enable using just a folder, it will be better that way.<br><br>I'm running this under <span>ArchLinux</span>.<br><br>The docker-<span>io</span> is the correct package, the another one is something not related at all. It's a dock applet <span>systray</span> program : https://<span>fedorahosted</span>.org/<span>fpc</span>/ticket/341<br>Many <span>distros</span> are getting into this naming problem.<br><br>So, you should remove docker and get docker-<span>io</span>.<br>I think that the docker service will start automatically.<br><br>This docker recipe should work across distributions as I didn't used specific items.<br><br>I forgot to tell it but docker will only run on amd64 machines.<br><br>The first time you'll run the script, docker will fetch the sugar image I've built. It's around 500mb, the source code used is in the <span>Dockerfile</span> located inside the <span>github</span> <span>repo</span>.<br>It will be cached and the next launches will be almost instant.<span><br><br>--<br><span>Michaël</span> <span>Ohayon</span><br>Manager <span>de</span> <span>l'Innovation</span> Cloud <span>et</span> <span>Mobilité</span><br><span>Epitech</span> Innovation Hub<br><br></span><div><div>2015-05-11 23:44 GMT+02:00 Gonzalo <span>Odiard</span> <<span>godiard</span>@<span>sugarlabs</span>.org>:<br>><br>> Maybe point to  directory where you have installed your activities?<br>> Or take it from a <span>env</span> variable.<br>><br>> A few questions:<br>> What is your testing environment? <br>> I am looking at how to install docker in Fedora, and have different instructions <br>> depending on the version https://<span>fedoraproject</span>.org/wiki/Docker<br>> I am using F21, should I remove docker and install docker-<span>io</span>?<br>><br>> What about other distributions? The docker recipe works across <span>distros</span><br>> or we need a different recipe for everyone?<br>><br>> Gonzalo <br>><br>> Gonzalo<br>><br>> On Mon, May 11, 2015 at 6:35 PM, <span>Michaël</span> <span>Ohayon</span> <<a href="mailto:mohayon75@gmail.com" target="_blank">mohayon75@gmail.com</a>> wrote:<br>>><br>>> Hi !<br>>><br>>> I've updated the script.<br>>> You can now start a sugar environment and provide activities folders !<br>>><br>>> https://<span>github</span>.com/<span>mikklfr</span>/docker-sugar<br>>><br>>> I've got two activities folders which I want to test : 2048.activity and <span>Valorar</span>.activity.<br>>><br>>> I can run sugar and provide those activities by running the script like this : <br>>><br>>> $>sh run.sh 2048.activity <span>Valorar</span>.activity<br>>><br>>> Sugar shows up and activities are available in the list.<br>>><br>>> You can edit the scripts from the host, they are synced with the docker container.<br>>><br>>> Maybe you have some specific topics I could look into to get something useful for your needs ?<br>>><br>>> --<br>>> <span>Michaël</span> <span>Ohayon</span><br>>> Manager <span>de</span> <span>l'Innovation</span> Cloud <span>et</span> <span>Mobilité</span><br>>> <span>Epitech</span> Innovation Hub<br>>><br>>> 2015-05-11 18:26 GMT+02:00 <span>Michaël</span> <span>Ohayon</span> <<a href="mailto:mohayon75@gmail.com" target="_blank">mohayon75@gmail.com</a>>:<br>>>><br>>>> Hi,<br>>>><br>>>> I've just setup something to run sugar with docker.<br>>>><br>>>> It will work on GNU/Linux only with X11 and <span>pulseaudio</span>.<br>>>><br>>>> I've published it on the docker registry and <span>github</span>.<br>>>><br>>>> - https://<span>github</span>.com/<span>mikklfr</span>/docker-sugar<br>>>> - The docker image is <span>mikkl</span>/sugar<br>>>><br>>>> It's kind of a <span>poc</span> for now.<br>>>> I'll setup a script to test an activity asap.<br>>>><br>>>> If you want to test it :<br>>>><br>>>> - Download and start docker service<br>>>> - Run the .sh script : https://<span>github</span>.com/<span>mikklfr</span>/docker-sugar/blob/master/run.sh<br>>>><br>>>> I'll give updates :)<br>>>><br>>>><br>>>> --<br>>>> <span>Michaël</span> <span>Ohayon</span><br>>>> Manager <span>de</span> <span>l'Innovation</span> Cloud <span>et</span> <span>Mobilité</span><br>>>> <span>Epitech</span> Innovation Hub<br>>>><br>>>> 2015-05-03 6:17 GMT+02:00 Gonzalo <span>Odiard</span> <<span>godiard</span>@<span>sugarlabs</span>.org>:<br>>>>><br>>>>> Nice.<br>>>>> And you have a docker recipe to create a sugar development environment?<br>>>>> Can be used in any operating system? <br>>>>> I am asking because we are thinking in how make easier develop in different <span>os</span>,<br>>>>> and also how distribute Sugar to users in other platforms.<br>>>>><br>>>>> Gonzalo <br>>>>><br>>>>> On Fri, May 1, 2015 at 1:23 PM, <span>Michaël</span> <span>Ohayon</span> <<a href="mailto:mohayon75@gmail.com" target="_blank">mohayon75@gmail.com</a>> wrote:<br>>>>>><br>>>>>> Thanks,<br>>>>>><br>>>>>> Docker is a great tool for booting up a container using <span>LXC</span>, you can refer to it as a very light <span>vm</span> focused on a specific task.<br>>>>>> You can script in minutes a way to boot a program by <span>targetting</span> a specific OS from any GNU/Linux<br>>>>>><br>>>>>> For instance here is a <span>Dockerfile</span> to <br>>>>>> - <span>bootup</span> an <span>archlinux</span> container<br>>>>>> - upgrading packages<br>>>>>> - copy a <span>nginx</span> <span>conf</span> file<br>>>>>> - clone <span>sugarizer</span> repository<br>>>>>> - expose <span>nginx</span> to port 80 on the host<br>>>>>><br>>>>>> [<span>ohayon</span>_m@<span>ohayon</span>-m-<span>thinkpad</span> /<span>tmp</span>]$ cat <span>Dockerfile</span> <br>>>>>> FROM     base/<span>archlinux</span>:latest<br>>>>>><br>>>>>> RUN yes | <span>pacman</span> -<span>Syy</span><br>>>>>> RUN yes | <span>pacman</span> -S <span>gcc</span> <span>nodejs</span> <span>openssh</span> <span>mongodb</span> supervisor <span>nginx</span> git<br>>>>>><br>>>>>> COPY <span>nginx</span>.<span>conf</span> /etc/<span>nginx</span>/<span>nginx</span>.<span>conf</span><br>>>>>><br>>>>>> RUN <span>cd</span> /opt; git clone https://<span>github</span>.com/<span>llaske</span>/<span>sugarizer</span>.git<br>>>>>> RUN <span>cd</span> /opt/<span>sugarizer</span>/server; <span>npm</span> install<br>>>>>> RUN <span>mkdir</span> /opt/<span>sugarizer</span>/db<br>>>>>><br>>>>>> EXPOSE 80<br>>>>>><br>>>>>> <span>CMD</span> ["/<span>usr</span>/bin/<span>nginx</span>"]<br>>>>>> [<span>ohayon</span>_m@<span>ohayon</span>-m-<span>thinkpad</span> /<span>tmp</span>]$<br>>>>>><br>>>>>> Each modification of a container is handled like a git commit so you can rollback at any time and launch specific snapshots.<br>>>>>> It has a "cache system". It will <span>bootup</span> almost instantly after the container is build.<br>>>>>><br>>>>>> I see it like a great tool to setup an <span>env</span> without having to script install for every OS or if you don't want to install every lib/framework/etc in your OS just for some testing.<br>>>>>> It can be used in production and manage/scale with the new tools : Docker Swarm and Docker Compose<br>>>>>><br>>>>>> Hope you'll find it <span>usefull</span> !<br>>>>>><br>>>>>><br>>>>>><br>>>>>> --<br>>>>>> <span>Michaël</span> <span>Ohayon</span><br>>>>>> Manager <span>de</span> <span>l'Innovation</span> Cloud <span>et</span> <span>Mobilité</span><br>>>>>> <span>Epitech</span> Innovation Hub<br>>>>>><br>>>>>> 2015-04-30 21:00 GMT+02:00 Gonzalo <span>Odiard</span> <<span>godiard</span>@<span>sugarlabs</span>.org>:<br>>>>>>><br>>>>>>> Hi <span>Michaël</span>, <br>>>>>>> Welcome!<br>>>>>>><br>>>>>>>> Few months later, I joined the Docker Paris <span>Hackathon</span> and had built <span>Sugarizer</span> and Sugar containers (with graphical support for the Sugar one).<br>>>>>>>><br>>>>>>><br>>>>>>> Interesting. I don't know more from Docker than the sporadic news,<br>>>>>>> could explain what can be done with the Sugar container? <br>>>>>>><br>>>>>>>><br>>>>>>>> My proposal is the <span>SugarWeb</span> Basic <span>ActivitySet</span> which is a <span>writting</span> of some essential apps for the web version of Sugar.<br>>>>>>>>  <br>>>>>>>><br>>>>>>>> Here's the link to my <span>GSOC</span> proposal : <a href="http://wiki" target="_blank">http://wiki</a>.<span>sugarlabs</span>.org/go/Summer_of_Code/2015/<span>mohayon</span>.<span>SugarWebBasicActivitySet</span><br>>>>>>>><br>>>>>>><br>>>>>>> Great. Keep connected :)<br>>>>>>><br>>>>>>> Gonzalo<br>>>>>><br>>>>>><br>>>>><br>>>>><br>>>>><br>>>>> -- <br>>>>> Gonzalo <span>Odiard</span><br>>>>><br>>>>> <span>SugarLabs</span> - Software for children learning <br>>>><br>>>><br>>><br>><br>><br>><br>> -- <br>> Gonzalo <span>Odiard</span><br>><br>> <span>SugarLabs</span> - Software for children learning <br><br></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Gonzalo Odiard<br><br><div>SugarLabs - Software for children learning <br></div></div></div>
</div>
</blockquote></div>