English Official Installation Guide
Docker is a very hot technology now, Docker uses linux-specific kernel-specific, so Mac OS X cannot be run directly locally. However, it can be implemented by installing Boot2docker application. Boot2docker contains the virtual Box Vm,docker and boot2docker management tools.
With the help of running a Docker virtual machine on a Mac, the Docker client runs locally, the Docker daemon runs in the virtual machine, and Boot2docker runs locally as a management tool.
Installing Boot2docker
The easiest way to do this is to install directly with brew and automatically resolve dependencies.
$ brew install boot2docker
Note: You will need to install the Go Language pack during the installation process, which requires a wall-over to install.
Initialize Docker
$ boot2docker init$ boot2docker start$ $(boot2docker shellinit)
Test Docker
$ docker run hello-world
If all is well, then the simple installation of Docker is complete, and the specific use of Docker can refer to the official website documentation or
Reverse telecommuting, Docker quickly deploys node. JS applications
Wrong row
If it appears as: Error in run:failed-Get Machine "BOOT2DOCKER-VM": a machine does errors such as exist, you can use
$ boot2docker -v info$ sudo boot2docker -v info #第一个命令不行再使用
Depending on the environment variables obtained, it is a valid solution to determine the possible problems with the setup of Virtual box, adjust the settings of virtual box, and then reload the Boot2docker.
A simple introduction to using Docker under Mac