As in the previous chapters, we'll start with the creation of a cluster we'll use to experiment.
Note
All the commands from this chapter are available in the 07-api.sh
(https://gist.github.com/vfarcic/bab7f89f1cbd14f9895a9e0dc7293102) Gist.
Please enter the cloud-provisioning
directory where we pulled the repository. Since I might have updated it since the last time you used it, we'll issue a pull. Finally, we'll run the already familiar script/ dm-swarm.sh
that will create a new Swarm cluster:
cd cloud-provisioning
git pull
scripts/dm-swarm.sh
The cluster is up and running.
VMs created with Docker Machine are based on Boot2Docker. It is a lightweight Linux distribution made specifically to run Docker containers. It runs entirely from RAM, is a small 38 MB download, and boots in ~5s. It is based on Tiny Core Linux (http://tinycorelinux.net/). What distinguishes it from more popular Linux distributions is its size. It is stripped down to a bare minimum. This...