Order
Because the cloud host will soon expire, or on the Mac on the first lap Docker environment bar.
Install Brew
CURL-LSSF Http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz-c/usr/local--strip 1
Boot2docker Way (will be discarded)
Install Docker
sudo brew install boot2docker
boot2docker init
Start
Update environment variables as prompted
Export DOCKER_CERT_PATH=/USERS/XIXICAT/.BOOT2DOCKER/CERTS/BOOT2DOCKER-VM
export Docker_tls_verify=1
Export docker_host=tcp://192.168.59.103:2376
Docker-machine (recommended)
Download Docker-toolbox
Can download from Daocloud
Installation
After downloading is a dockertoolbox-1.9.1i.pkg, and then double-click the installation, if the previous boot2docker is running, you need to close:
Start
Docker-machine Start Default
Alternatively, double-click Docker Quickstart Terminal, and if zsh is installed, you can change the following configuration:
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 "
Enter
Docker-machine SSH Default