<div dir="ltr"><div><br></div>Interesting.. I actually don't see that line between snaps and Docker.  Just like you can run "docker run mysql" several times, one may run "mysnap.mysql" several times. In both cases the daemon will be visible to the external world via a separate port of the local host's public IP address. In both cases mysql will be isolated from the local environment by confinement.<div><br></div><div>It's even a bit more convenient to do that using a snap. Easier to manage the process on a systemd unit, for example, since the mysql process will indeed be a child of systemd/etc instead of a child of the docker daemon.</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 25, 2017 at 11:51 AM, Mark Shuttleworth <span dir="ltr"><<a href="mailto:mark@ubuntu.com" target="_blank">mark@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
The best way to think of this is to know that snaps are GREAT when you<br>
have a precise 1:1 relationship between "machines" and "running<br>
instances". And Docker is GREAT when you want an elastic relationship.<br>
So for example, if you want a MySQL "appliance" on a device, there will<br>
only ever be 1 MySQL instance on that device, you want a snap. If you<br>
want a cluster where there may be 1-many instances of MySQl on each<br>
actual machine or VM, then you want Docker.<br>
<br>
The reason for this is that Docker gives each running process its own IP<br>
address. That's perfect for the hyper-elastic case - each extra MySQSL<br>
is just another IP address to talk to. But if you have a machine where<br>
you already have an IP address and all you want is a MySQL there then a<br>
snap will be easier.<br>
<br>
This is why a snap of the Docker daemon makes such sense - in your<br>
cluster, you want exactly one copy of Docker itself running on each<br>
machine, and that is best pulled in as  a snap. That docker process then<br>
manages an arbitrary number of docker processes on each machine.<br>
<br>
Make sense?<br>
<span class="m_-7087982481005229663HOEnZb"><font color="#888888">Mark<br>
</font></span><div class="m_-7087982481005229663HOEnZb"><div class="m_-7087982481005229663h5"><br>
<br>
<br>
<br>
--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">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/mailm<wbr>an/listinfo/snapcraft</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">gustavo @ <a href="http://niemeyer.net" target="_blank">http://niemeyer.net</a></div>

</div></div>