/usr/bin/docker
with the one from the master builds
DOCKER_OPTS="-H 0.0.0.0:2375"
to /etc/default/docker
on each of your hostsservice docker restart
swarm
binary on any machine using the swarm builder
swarm
binary to each hostswarm create
and remember the TOKEN
that is returnedswarm join --token=<TOKEN> --addr=<local IP>:2375 &
git clone https://github.com/remmelt/swarm-ui.git
run.sh <TOKEN>
will expose port 80 on the local machine or boot2docker VMThe UI is a Docker container running swarm manage
. The swarm manager connects to your swarm by finding its nodes through the hub's discovery service.
Besides swarm, it's running nginx. Nginx serves up the index.html
that is currently the entire webapp, and reverse proxies to the swarm manager because it does not yet support CORS.
Through the magic that is javascript and a couple of ajax calls to the swarm API, a table gets filled with the information about all nodes running in the swarm.
Neat!