<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>========================================================</div><div>sudo snap connect docker:docker-cli docker:docker-daemon</div><div><br></div><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) ========================================================<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><div class="gmail_extra"><br></div><div class="gmail_extra">Peng</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 18, 2016 at 6:48 AM, Loïc Minier <span dir="ltr"><<a href="mailto:loic.minier@ubuntu.com">loic.minier@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><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">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">https://github.com/<wbr>docker-snap/docker</a></div><div><br></div><div>Cheers,</div><div><div class="gmail-m_-8568622783810868166gmail_signature"><div dir="ltr">- Loïc Minier</div></div>
</div></div>
<br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
<br></blockquote></div><br></div></div>