<div dir="ltr">Hi,<div><br></div><div>What's the output of snap --version?</div><div><br></div><div>Thanks!</div><div>- Loïc Minier</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 1, 2016 at 4:21 AM, Peng Liu <span dir="ltr"><<a href="mailto:pengliu.mail@gmail.com" target="_blank">pengliu.mail@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">Hi Loïc,<div><br></div><div>I encountered some errors when I tried to connect the interfaces, for example:</div><div>==============================<wbr>==========================</div><span class=""><div>sudo snap connect docker:docker-cli docker:docker-daemon</div><div><br></div></span><div>error: cannot perform the following tasks: - Connect docker:docker-cli to docker:docker-daemon (cannot connect plug "docker-cli" from snap "docker", no such plug) ==============================<wbr>==========================<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Then I am not able to run a simple docker command like "<span style="font-variant-ligatures:no-common-ligatures;font-family:menlo;font-size:11px">docker run --rm hello-world"</span></div>







<div class="gmail_extra"><br></div><div class="gmail_extra">Did I miss something? Is there anything need to do after installing the docker snap?</div><div class="gmail_extra">Thanks.</div><span class="HOEnZb"><font color="#888888"><div class="gmail_extra"><br></div><div class="gmail_extra">Peng</div></font></span><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Oct 18, 2016 at 6:48 AM, Loïc Minier <span dir="ltr"><<a href="mailto:loic.minier@ubuntu.com" target="_blank">loic.minier@ubuntu.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi!<div><br></div><div>Docker is since some days available as a properly confined snap. This will work on top of classic Ubuntu 16.04+ or on top of an up-to-date Ubuntu Core series 16.</div><div><br></div><div>Because the docker.sock path is hardcoded in a lot of images, this snap conflicts with docker debs, so make sure you remove them first:</div><div>sudo apt purge docker docker-engine</div><div><br></div><div>Create a system group for docker:</div><div>sudo groupadd --system docker</div><div><br></div><div>Install the snap:</div><div>sudo snap install docker</div><div><br></div><div>And connect the interfaces (these will go away we have a snap-declaration in place):</div><div><div>sudo snap connect docker:docker-cli docker:docker-daemon</div><div>sudo snap connect docker:firewall-control ubuntu-core:firewall-control</div><div>sudo snap connect docker:support ubuntu-core:docker-support</div><div>sudo service snap.docker.dockerd stop</div><div>sudo service snap.docker.dockerd start</div></div><div><br></div><div>You're now ready to use docker, e.g.:</div><div>sudo /snap/bin/docker run --rm -it hello-world<br></div><div>sudo /snap/bin/docker run --rm -it ubuntu</div><div><br></div><div>At the moment, the Docker snap is available for amd64, armhf, arm64, i386.<br></div><div><div><br></div><div>Docker-compose is also included, and may be used with the "docker.compose" command.</div><div><br></div><div>Want to read more about docker? Read the <a href="https://docs.google.com/document/d/1JHa6tkuR9PtpnAVVmAJIAKuyKBy8E9ZkvG5Wbc6HZSY/edit?usp=sharing" target="_blank">Docker snap status and FAQ doc</a>!</div><div><br></div></div><div>Have fun and please report issues against <a href="https://github.com/docker-snap/docker" target="_blank">https://github.com/doc<wbr>ker-snap/docker</a></div><div><br></div><div>Cheers,</div><div><div class="m_6198679659968421902gmail-m_-8568622783810868166gmail_signature"><div dir="ltr">- Loïc Minier</div></div>
</div></div>
<br></div></div><span class="">--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailm<wbr>an/listinfo/snapcraft</a><br>
<br></span></blockquote></div><br></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">- Loïc</div></div>
</div>