Install and use docker on Mac

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
insert image description here

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
insert image description here

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.
insert image description here

docker use

Find the Docker icon from Applications and hit run. You may be asked for the macOS login password, just enter it.
insert image description here

Clicking on the whale icon in the top status bar brings up the actions menu.
insert image description here

docker --version 查看版本

Configure private warehouse or public warehouse

insert image description here

Pull the image to run

insert image description here
insert image description here

Participation link:
https://www.runoob.com/docker/macos-docker-install.html
https://blog.csdn.net/qq_42405688/article/details/124468315

Guess you like

Origin blog.csdn.net/yinjl123456/article/details/127406439