Galera meets Docker Network \o/

Galera und Docker Network

Using Docker to run Galera on multiple nodes is quite a mess as described
here.
It is possible but no fun at all. As Docker does NATing every bidirectional setup is
complicated.

Starting with Docker Network (version 1.9) you can simply span a Docker owned network (multiple of them) over
multiple nodes. These networks are separated as the known bridged network Docker uses by default.
It also provides a simple node/container discovery using the --name switch. Feels like a simple DNS.

Let's have a look how easy it is to deploy a Galera cluster. It is not for production. I use my own Docker image.
It is just to play around.

This is a quite simple and insecure example. Docker Network will change also the
way we build simple MySQL replication setups.
If you used to use --links. Get rid of it. As they are deprecated already in favor of Docker Network.
Next time we are going to use Docker Swarm (on top of Docker Network) to deploy a Galera Cluster.