Command | Description |
---|---|
docker-machine version | List docker-machine version |
docker-machine ls | List machines |
docker-machine ip | Get the IP address of the machine |
docker-machine create -d virtualbox --virtualbox-memory "2000" --virtualbox-disk-size "5000" node1 | Create a node |
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock --name ucp docker/ucp install -i --swarm-port 3376 --controller-port "8443" --host-address $(docker-machine ip node1) | install UCP |
eval $(docker-machine env node1) | Switch to using node 1 |
docker run --rm -it -v /var/run/docker.sock:/var/run/docker.sock --name ucp docker/ucp join -i --host-address $(docker-machine ip node2) | Add another node to UCP |