因爲雲主機很快就要到期了,仍是在mac上先搭一下docker環境吧。git
curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1
將要廢棄
)sudo brew install boot2docker boot2docker init
boot2docker up
export DOCKER_CERT_PATH=/Users/xixicat/.boot2docker/certs/boot2docker-vm export DOCKER_TLS_VERIFY=1 export DOCKER_HOST=tcp://192.168.59.103:2376
推薦
)能夠從daocloud下載github
下載以後是個DockerToolbox-1.9.1i.pkg,而後雙擊安裝,若是以前有舊的boot2docker正在運行,須要關閉:docker
boot2docker down
docker-machine start default
或者雙擊Docker Quickstart Terminal,若是裝了zsh的話,能夠更改下配置:shell
bash -c "clear && DOCKER_HOST=tcp://192.168.99.100:2376 DOCKER_CERT_PATH=/Users/xixicat/.docker/machine/machines/default DOCKER_TLS_VERIFY=1 /bin/zsh"
docker-machine ssh default