This blogpost extends last one. In the last blogpost, we had a look into Docker Network and how it makes the communication between the containers (over multiple hosts) easier. Of course we used Galera for that :)
In this blogpost we are going to use Docker Swarm to bootstrap a Galera Cluster.
Why using Docker Swarm?
Docker Swarm is (simplified) a proxy. So we've got one accesspoint to manage multiple hosts. (The swarm manage service will run on 172.17.152.11:2376). We also use Docker Swarm to abstract from the nodes. As we want the cluster to be running but we don't want to define explicitly where to run them. (Think about a 3-node-cluster on Docker Swarm with 100 nodes.)
Let us point the local docker to Docker Swarm:
export DOCKER_HOST=tcp://172.17.152.11:2376
We still got …
[Read more]