Install and use docker on Mac
Method 1: Install using Homebrew
brew install --cask --appdir=/Applications docker
Password: # 输入 macOS 密码
出现:docker was successfully installed! 安装成功。
Open docker in the application list, and there is also a small whale icon on the status bar
Method 2: Manually download and install
Official download address: https://docs.docker.com/desktop/install/mac-install/
Select the corresponding CPU architecture, and then download the .dmg file
Like other macOS software, the installation is very simple, double-click the downloaded .dmg file, and then drag the whale icon to the Application folder.
docker use
Find the Docker icon from Applications and hit run. You may be asked for the macOS login password, just enter it.
Clicking on the whale icon in the top status bar brings up the actions menu.
docker --version 查看版本
Configure private warehouse or public warehouse
Pull the image to run
Participation link:
https://www.runoob.com/docker/macos-docker-install.html
https://blog.csdn.net/qq_42405688/article/details/124468315