<div dir="ltr">Hi Luther!<div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>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 resource quotas.</div><div><br></div><div>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 snap.</div><div><br></div><div>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 usage etc.).</div><div><br></div><div>Cheers,</div><div>- Loïc Minier</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 25, 2017 at 12:53 AM, Luther Goh Lu Feng <span dir="ltr"><<a href="mailto:elfgoh@yahoo.com" target="_blank">elfgoh@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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?<br>
<br>
<br>
I also read this article[1], though dated, mentions docker support in Snappy, which makes me wonder:<br>
<br>
- the scenarios that I would want to deploy docker containers alongside snaps<br>
- snapping a docker container.<br>
<br>
Appreciate if someone can enlighten me. Thanks.<br>
<br>
<br>
-- Luther<br>
[1] <a href="http://thenewstack.io/snappy-ubuntu-a-new-cloud-os-with-support-for-docker-in-a-post-shellshock-era/" rel="noreferrer" target="_blank">http://thenewstack.io/snappy-<wbr>ubuntu-a-new-cloud-os-with-<wbr>support-for-docker-in-a-post-<wbr>shellshock-era/</a><br>
<span class="HOEnZb"><font color="#888888"><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" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
</font></span></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>