1. Installation
Install using Homebrew, Docker will be automatically added to the application
brew cask install docker
2. Operation
Find the Docker icon from the application and click to run, check the Docker version through the command
$ docker --version Docker version 19.03.1, build 74b1e89 $ docker-compose --version docker-compose version 1.24.1, build 4667896b
Try to run an Nginx server:
docker run -d -p 80:80 --name webserver nginx
After the service is running, you can visit http: // localhost, if you see "Welcome to nginx!", It means that the Docker Desktop for Mac is successfully installed.