Skip to content

Instantly share code, notes, and snippets.

@jeasonstudio
Last active February 19, 2019 05:38
Show Gist options
  • Save jeasonstudio/b3531a3ef355e090e14f51c1296260c9 to your computer and use it in GitHub Desktop.
Save jeasonstudio/b3531a3ef355e090e14f51c1296260c9 to your computer and use it in GitHub Desktop.

Guideline of install docker

0x00 homebrew install

$ brew install docker docker-compose docker-machine xhyve docker-machine-driver-xhyve

0x01 try to use xhyve(instead of VBoxManage)

$ 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).

0x03 eval docker-machine env

$ eval $(docker-machine env default)

0x04 enjoy docker

$ docker ps

0x05 stop docker-machine

# list your created docker-machines
$ docker-machine ls
$ docker-machine stop default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment