a 3-node docker swarm cluster wrapped in a vagrant environment
- Install http://port.us.org/
- Use https://github.com/codedellemc/rexray with https://hub.docker.com/r/rexray/rbd/ for ceph storage AND see https://github.com/codedellemc/labs too OR https://github.com/contiv/volplugin
- Install https://github.com/weaveworks/scope
- Install https://github.com/goharbor/harbor instead of the vanilla repository
Build and install the Ubuntu Linux Base Box.
Add the following entries to your /etc/hosts
file:
10.10.0.201 registry.example.com
10.10.0.201 docker1.example.com
10.10.0.202 docker2.example.com
10.10.0.203 docker3.example.com
Run vagrant up
to launch the 3-node cluster.
Try the following endpoints:
- portainer: a Portainer instance that you can use to manager docker.
- go-info: a example that shows how an Go application can use secrets and configs.
- Set the docker daemon debug mode and watch the logs:
- set
"debug": true
inside the/etc/docker/daemon.json
file - restart docker with
systemctl restart dockerd
- watch the logs with
journalctl --follow
- set