Relationship between snaps and containers, if any
loic.minier at ubuntu.com
Wed Jan 25 11:32:18 UTC 2017
Docker containers and snaps are different but sometimes overlap in solving
certain classes of technical problems. For instance, "software
distribution" as a broad problem is addressed by both snaps and Docker
containers, but with very different implementations.
First of all, yes you can run Docker on top of an all-snaps system such as
Ubuntu Core, and the Docker snap will also give you a Docker engine runtime
on Ubuntu classic.
Docker containers and snaps are built on different goals. Snaps will
typically look and feel like system or user apps running directly on your
regular system: you see them in the process list, they see each other if
the sandboxing allows it, they may interact with the screen/USB
devices/whatever if permissions allow it etc.. Docker containers feel more
like very efficient virtual machines that you connect to, they allow for
sandboxing as well – where the whole container is sandboxed – and for
On your question of snapping a docker container: yes, you would be able to
wrap a Docker image inside a snap which would be a client of the Docker
On the top of my head, I can personally think of two main cases where you
would want to run containers on top of an all snap system: when your
workload is already packaged as a container, or when you want to use the
resource limits featured in Docker or LXD (e.g. limit network usage, CPU
- Loïc Minier
On Wed, Jan 25, 2017 at 12:53 AM, Luther Goh Lu Feng <elfgoh at yahoo.com>
> I seek clarity in understanding how docker containers are different from
> snaps. The question originated as I pondered if docker containers are the
> equivalent of snaps. Is there a blog post or FAQ somewhere that already
> addresses this?
> I also read this article, though dated, mentions docker support in
> Snappy, which makes me wonder:
> - the scenarios that I would want to deploy docker containers alongside
> - snapping a docker container.
> Appreciate if someone can enlighten me. Thanks.
> -- Luther
>  http://thenewstack.io/snappy-ubuntu-a-new-cloud-os-with-
> Snapcraft mailing list
> Snapcraft at lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Snapcraft