background
I switched to a Mac computer and it is still an M1. I am destined to fill in the pits step by step.
Download and install docker
In particular, docker can be run directly on Mac without installing a virtual machine.
Find the download address of the M1 version of docker: https://desktop.docker.com/mac/stable/arm64/Docker.dmg.
There is the word arm64 in the address, which means it is correct. Did you see that the installation method at the end of dmg is the same as the mac application.
After the installation was successful:
I didn’t follow the steps it prompted and just skipped them.
Open the terminal and enter: docker pull redis:6.0. The image can be pulled normally
Configure Alibaba image source
Mainly to speed up downloads.
Detailed reference tutorial: http://blog.java1234.com/blog/articles/572.html.
Just get the accelerator address: https://XXXX.mirror.aliyuncs.com. (xxx corresponds to your own address)
Select Resources-Proxies-Secure Web Server (HTTPS) on the docker desktop, enter https://xxxx.mirror.aliyuncs.com
and click "apply and restart".
other
docker supports the interface to create and run containers: