Because the Docker daemon uses Linux-specific kernel features, you cannot run Docker directly on OS X.
Docker Toolbox Installation Docker:
Https://github.com/widuu/chinese_docker/blob/master/installation/mac.md
Docker for MAC installation Docker (recommended):
Download: https://docs.docker.com/docker-for-mac/install/#download-docker-for-mac
Docker for Mac essentially creates a Linux virtual machine and then runs Docker Daemon,mac itself as a client, storing the Docker binaries, which is more convenient and faster than the previous Docker Toolbox.
Docker for Mac is a native Apple app that is installed into the /Application
directory.
The installation will create /usr/local/bin
a directory of docker
, docker-compose
docker-machine
soft links, soft connections to ~/Library/Group Containers/group.com.docker/bin
the directory of various types of files,
The file in this directory is actually a soft link, actually pointing /Applications/Docker.app/Contents/Resources/bin
to the actual binary file under the directory.
Docker for MAC does not use to docker-machine
manage virtual machines
Docker for MAC does not communicate over TCP port, using /var/tmp/docker.sock
socket file communication
- With Xhyve virtual machines, you can emulate processors of different architectures, using image files from many platforms, such as arm.
Recommended:
Official Docker Tutorial:
https://docs.docker.com/docker-for-mac/install/#install-and-run-docker-for-mac
Docker Beginner Tutorial:
Http://www.runoob.com/docker/docker-container-connection.html
Install under Docker's Mac