$ brew install docker docker-compose docker-machine xhyve docker-machine-driver-xhyve
$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
0x02 open aliyun-docker-mirror register/login and get your own mirror address
$ docker-machine create --engine-registry-mirror=https://{!!blabla!!}.mirror.aliyuncs.com -d xhyve default # default is a name
If you have trouble because of the gfw, please use proxy to manually down latest boot2docker.iso. Disconnect network before execute
docker-machine create
(see here).
$ eval $(docker-machine env default)
$ docker ps
# list your created docker-machines
$ docker-machine ls
$ docker-machine stop default