Install Docker on Mac M1

Install Docker on Mac M1 and configure the domestic mirror address

1. Docker download:

Connection: https://docs.docker.com/docker-for-mac/apple-silicon/  Click Download to download the .dmg file.

2. Docker installation

Double-click the downloaded Docker.dmg file to start the installation, drag Docker to Applications and wait for the installation to complete

3. Docker starts

Find Docker on the startup platform and click Start. After a while, the startup is successful. A whale icon is displayed in the menu bar at the upper right corner of the screen. Click it to see the running status of Docker:

 

4. Open the terminal and execute the relevant commands

docker --version : View Docker version information

docker info : View specific information about Docker

docker ps: view running containers (the query just installed is empty)

docker images : View the local image (the query just installed is empty)

docker pull *** : Pull the image

5. Configure domestic mirror address acceleration

Click the Docker Desktop application icon (whale icon) -> Perferences on the task bar in the upper right corner, select Docker Engine in the left menu, and modify the json file on the right (add content as follows, the mirror address of Alibaba Cloud and Netease), after adding, click Apply & Restart button, Docker will restart and apply the configured image address.

“registry-mirrors”: [
“https://xxxxxx.mirror.aliyuncs.com”,
“http://hub-mirror.c.163.com”
]

Guess you like

Origin blog.csdn.net/weixin_45925028/article/details/130960827