The version 1.12 of Docker has been released few days ago. Among the changes, Docker-Swarm get embedded directly into the Engine that allow easier Swarm deployment. I’m going to show that to you.
Docker Swarm is native clustering for Docker. It turns a pool of Docker hosts into a single, virtual Docker host.
Earlier stages, it was quite hard to deploy a Swarm cluster, you had to generate some certs, use a service discovery, configure each node… This time is over ! Today, we are going to make a Swarm cluster in two commands !
In this post, I’ll show you how to make a small cluster between two virtual machines but you can easily repeat operations to make a larger cluster.
I’ll use two Ubuntu 16.04 Xenial VM and install Docker 1.12 on each.
sudo apt-get -y update
sudo apt-get install apt-transport-https ca-certificates
sudo apt-key adv –keyserver hkp://p80.pool.sks-keyservers.net:80 –recv-keys 58118E89F3A912897C070ADBF76221572C52609D
Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/jcPa3iEyeXE/