Hi Loïc, I also realized that might be a problem in an old version. So I upgraded the snapd to the latest version.
$ snap --version snap 2.16ubuntu3 snapd 2.16ubuntu3 series 16 ubuntu 16.04 And I tried to install the docker from both stable and edge channel. In both cases, the plug and slot can not connect problems have gone. But I am still not able to figure out how to run a simple hello world docker. $ docker run ubuntu /bin/echo 'Hello world' docker: Cannot connect to the Docker daemon. Is the docker daemon running on this host?. See 'docker run --help'. Thanks. Peng On Tue, Nov 1, 2016 at 11:06 AM, Loïc Minier <loic.min...@ubuntu.com> wrote: > Hi, > > What's the output of snap --version? > > Thanks! > - Loïc Minier > > On Tue, Nov 1, 2016 at 4:21 AM, Peng Liu <pengliu.m...@gmail.com> wrote: > >> Hi Loïc, >> >> I encountered some errors when I tried to connect the interfaces, for >> example: >> ======================================================== >> sudo snap connect docker:docker-cli docker:docker-daemon >> >> 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) ======================================================== >> >> Then I am not able to run a simple docker command like "docker run --rm >> hello-world" >> >> Did I miss something? Is there anything need to do after installing the >> docker snap? >> Thanks. >> >> Peng >> >> On Tue, Oct 18, 2016 at 6:48 AM, Loïc Minier <loic.min...@ubuntu.com> >> wrote: >> >>> Hi! >>> >>> 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. >>> >>> 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: >>> sudo apt purge docker docker-engine >>> >>> Create a system group for docker: >>> sudo groupadd --system docker >>> >>> Install the snap: >>> sudo snap install docker >>> >>> And connect the interfaces (these will go away we have a >>> snap-declaration in place): >>> sudo snap connect docker:docker-cli docker:docker-daemon >>> sudo snap connect docker:firewall-control ubuntu-core:firewall-control >>> sudo snap connect docker:support ubuntu-core:docker-support >>> sudo service snap.docker.dockerd stop >>> sudo service snap.docker.dockerd start >>> >>> You're now ready to use docker, e.g.: >>> sudo /snap/bin/docker run --rm -it hello-world >>> sudo /snap/bin/docker run --rm -it ubuntu >>> >>> At the moment, the Docker snap is available for amd64, armhf, arm64, >>> i386. >>> >>> Docker-compose is also included, and may be used with the >>> "docker.compose" command. >>> >>> Want to read more about docker? Read the Docker snap status and FAQ doc >>> <https://docs.google.com/document/d/1JHa6tkuR9PtpnAVVmAJIAKuyKBy8E9ZkvG5Wbc6HZSY/edit?usp=sharing> >>> ! >>> >>> Have fun and please report issues against https://github.com/doc >>> ker-snap/docker >>> >>> Cheers, >>> - Loïc Minier >>> >>> -- >>> Snapcraft mailing list >>> Snapcraft@lists.snapcraft.io >>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm >>> an/listinfo/snapcraft >>> >>> >> > > > -- > - Loïc >
-- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft