Easy Tutorial
❮ Docker Push Command Docker Kill Command ❯

MacOS Docker Installation

Installing with Homebrew

On macOS, we can use Homebrew to install Docker.

Homebrew's Cask already supports Docker for Mac, so it's convenient to use Homebrew Cask for installation:

$ brew install --cask --appdir=/Applications docker

==> Creating Caskroom at /usr/local/Caskroom
==> We'll set permissions properly so we won't need sudo in the future
Password:          # Enter your macOS password
==> Satisfying dependencies
==> Downloading https://download.docker.com/mac/stable/21090/Docker.dmg
######################################################################## 100.0%
==> Verifying checksum for Cask docker
==> Installing Cask docker
==> Moving App 'Docker.app' to '/Applications/Docker.app'.
🍺  docker was successfully installed!

After loading the Docker app, click Next, and you may be asked for your macOS login password, which you should enter. A Docker running prompt window will then appear, and you'll see a small whale icon in the status bar.


Manual Download Installation

If you need to download manually, please click the following link to download Install Docker Desktop on Mac.

Like other macOS software, installation is very simple. Double-click the downloaded .dmg file and drag the whale icon to the Application folder.

Click the whale icon in the top status bar to pop up the operation menu.

The first time you click the icon, you might see this installation success interface. Click "Got it!" to close this window.

After starting the terminal, you can check the Docker version with the command:

$ docker --version
Docker version 17.09.1-ce, build 19e2cf6

Image Acceleration

Given the network issues in China, pulling Docker images can be very slow. We can configure an accelerator to solve this problem. I use the NetEase image address: http://hub-mirror.c.163.com.

Click the Docker for Mac application icon in the task bar -> Perferences... -> Daemon -> Registry mirrors. Enter the accelerator address in the list. After modifying, click the Apply & Restart button, and Docker will restart and apply the configured image address.

You can then check if the configuration was successful with docker info:

$ docker info
...
Registry Mirrors:
 http://hub-mirror.c.163.com
Live Restore Enabled: false
❮ Docker Push Command Docker Kill Command ❯