Docker machine and cluster

Installing

brew cask install docker-machine

Basic commands

docker-machine -v
docker-machine create --driver virtualbox dev
docker-machine env dev
docker-machine config
docker $(docker-machine config dev) ps run busybox echo 'hello world'
docker $(docker-machine config dev) run busybox echo 'hello world'
docker-machine ip
docker $(docker-machine config dev) run swarm create
docker $(docker-machine config dev) ps

Removing environment

docker-machine kill
docker-machine list
docker-machine ls
docker-machine rm dev