Macos Docker Install
# MacOS Docker Installation
## Installing via Homebrew
On macOS, we can use Homebrew to install Docker.
Homebrew's Cask already supports Docker for Mac, making it very convenient to install using Homebrew Cask:
$ 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 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. You may be prompted to enter your macOS login password. After that, a Docker running notification window will appear, and a small whale icon will be visible in the status bar ((#)).
* * *
## Manual Download and Installation
If you need to download manually, please click the following link to download (https://docs.docker.com/docker-for-mac/install/).
!(#)
Like other macOS software, the installation is very simple. Double-click the downloaded .dmg file, then drag the whale icon to the Application folder.
!(#)
Find the Docker icon in your applications and click to run it. You may be prompted to enter your macOS login password.
!(#)
Clicking the whale icon in the top status bar will bring up the operations menu.
!(#)
!(#)
The first time you click the icon, you may see this installation success screen. Click "Got it!" to close this window.
!(#)
After starting the terminal, you can check the installed Docker version with the command.
$ docker --version Docker version 17.09.1-ce, build 19e2cf6
## Image Acceleration
Due to domestic network issues, pulling Docker images later can be very slow. We may need to configure an accelerator to solve this. I am using NetEase's mirror address: http://hub-mirror.c.163.com.
Click the Docker for Mac application icon in the taskbar -> Preferences... -> Daemon -> Registry mirrors. Fill in the accelerator address in the list. After making the changes, click the Apply & Restart button, and Docker will restart and apply the configured mirror address.
!(#)
After that, we can use `docker info` to check if the configuration was successful.
$ docker info ...Registry Mirrors: http://hub-mirror.c.163.comLive Restore Enabled: false
YouTip