In the previous section, we looked at how to use Portainer on a standalone Docker instance. Portainer also supports Docker Swarm clusters, and the options in the interface adapt to the clustered environment. We should look at spinning up a Swarm and then launching Portainer as a service and see what changes.
Portainer and Docker Swarm
Creating the Swarm
As in the Docker Swarm chapter, we are going to be creating the Swarm locally using Docker Machine; to do this, run the following commands:
$ docker-machine create -d virtualbox swarm-manager
$ docker-machine create -d virtualbox swarm-worker01
$ docker-machine create -d virtualbox swarm-worker02
Once the three instances have launched, run the following command to initialize...