Confined Docker snap available

Dustin Kirkland kirkland at canonical.com
Thu Oct 20 18:18:15 UTC 2016


On Tue, Oct 18, 2016 at 4:48 AM, Loïc Minier <loic.minier at 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.

Nice work :-)

> 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

Hmm, that feels like something Snaps should learn to express as a
declaration, right?  Surely if we're successful in moving more
applications, like Docker, from debs to snaps, our users would
appreciate a kindly mechanism to

> 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

Very nice.  What's the ETA on snap-declaration?

> 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.

Any blockers for s390x?

> 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!
>
> Have fun and please report issues against
> https://github.com/docker-snap/docker
>
> Cheers,
> - Loïc Minier
>
> --
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/snapcraft
>




More information about the Snapcraft mailing list