I recently returned from Dockercon 2016 in Seattle. The announcements of new features and improvements were many, but one in particular has me very excited. With the release of Docker 1.12-rc2 they introduced Swarm mode! This allows for native orchestration and service discovery without the need of any third party tools.
You need a few tools installed to follow along with this example.
Here we are just using docker machine to create 3 virtualbox that will house our swarm.
Here we create a manager which will be able to schedule container to run on the swarm as well as a couple of nodes to participate in the swarm connected to the manager.
The following will setup a swarm cluster on the 3 boxes previously created.
Here we will just spin up the default nginx container.
Let’s try to scale our nginx container to 5 spread across the swarm.
*Disclaimer: since this was introduced in a release candidate the final commands and API could change before being fully released.
© 2017 Jonathan's Site
The opinions expressed here represent my own and not those of my employer or any other groups I am associated with.