...
Using the Docker command line interface, we can access the local Docker daemon on port 2375 and the Docker Swarm on port 4000. The Swarm manager orchestrates containers on the remote Swarm node using port 2375 while the node registers itself to Consul using port 8500.
Setup
Step 1: Preparation
- Download & install VirtualBox (https://www.virtualbox.org/)
- Download the actual CoreOS image (https://coreos.com/os/docs/latest/booting-with-iso.html)
Create two virtual machines:
Name: CoreOS <version> - cluster-r730-1 CoreOS <version> - cluster-r730-k20-1 Type: Linux Version: Linux 2.6 / 3.x / 4.x (64-bit) Memory: 1024MB Storage: Create new virtual hard disk:
Name: CoreOS <version> - cluster-r730-1.vdi
Size: 8GB (Dynamically expanding sorage)Network Adapter 1: NAT
...
Step 3: Download Docker images
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
docker pull swarm docker pull progrium/consul docker pull hello-world |
Step 4: Setup local network
...