
安装须知。
现在 Docker 安装已经很简单了,只需要下载 Docker Desktop,然后一键安装。
Docker Desktop。可快速安装和设置完整 Docker 开发环境。它提供了一个直观的图形用户界面 (GUI),容器、应用程序和镜像可以直接管理c;
还包括关键组件:Docker Engine。
、。Docker CLI client。
、。Docker Compose。
。
Docker Desktop 小企业(员工少于250人,年收入不超过1000万美元)、个人使用、教育和非商业开源项目是免费的。
*xfff1软硬件要求a;
- 系统应该是11或更高的版本,包括Big Sur(11)、Monterey(12)或者Ventura(13),建议升级到最新版本 macOS。
- 至少需要 4GB 系统内存。
确定你的 Mac 用的是哪一个 macOS 版本。
我的 Mac 配置:
- 操作系统 MacOS Monterey 12.5.1。
- 芯片 Apple M1 Pro。
- 系统内存 16GB。
下载 Docker。
官方安装教程:Install Docker Desktop on Mac。
根据计算机配备的芯片架构,选择苹果芯片。Apple Silicon。
或者因为特尔芯片。Intel chip。
下载安装包。

您还可以直接从我共享的网盘下载我使用的版本。4.20.1。
,关注微信微信官方账号。享受TechLife。
,回复。docker。
您可以获得下载地址。
一键安装。
Step1:下载后,双击。Docker.dmg。
,直接拖到。Applications。
可以完成文件夹的安装。

Step2:按照安装导向上的说明授权安装程序,点击继续,并选择。Use recommended settings。
(要求输入密码和xff09;,点击。Finish。



Step3:双击。Docker.app。
可以启动。Docker DeskTop。

配置 Docker 镜像加速。
国内镜像地址。
- 阿里云 Docker 镜像加速在阿里云官网注册账号后需要获取。
- 腾讯云 Docker 镜像加速。
- 华为云 Docker 镜像加速。
- 清华大学 TUNA 协会 镜像源地址:https://docker.mirrors.tuna.tsinghua.edu.cn。
- 中国科技大学 镜像源地址:https://docker.mirrors.ustc.edu.cn。
- 北京理工大学 镜像源地址:https://dockerhub.azk8s.cn。
- 浙江大学 镜像源地址:https://mirrors.zju.edu.cn/dockerhub/。
修改 Docker 配置文件。
我使用的。阿里云镜像源。,如果小伙伴没有注册阿里云或者太麻烦c;我的地址可以使用。
以下镜像地址可能无效,关注微信微信官方账号。享受TechLife。
,回复。docker。
获取我最新的阿里云镜像源地址。
修改配置文件:
{ 。"buildkit":。true。}。,"registry-mirrors":。[。"https://s3oc8w1j.mirror.aliyuncs.com"]。}。
只能使用。"registry-mirrors"
这个配置就够了。

测试 & 验证。
打开命令行窗口,输入如下命令安装成功没有报错。
# 查看版本。docker。--version。# 下载demo镜像并启动容器。docker。run hello-world。
我的输出如下:
ludynice %。 docker。--version。Docker version。 24.0。.2, build 74dfcludynice %。 docker。run hello-worldHello from Docker。!。This message shows that your installation appears to be working correctly.To generate this message, Docker took the following steps:。 1。. The Docker client contacted the Docker daemon.。 2。. The Docker daemon pulled the。 "hello-world"image from the Docker Hub.。 (。arm64v8。)。3。. The Docker daemon created a new container from that image。 which。runs the executable that produces the output you are currently reading.。 4。. The Docker daemon streamed that output to the Docker client, which。sent it to your terminal.To try something。 more。ambitious, you can run an Ubuntu container with: $。 docker。run。 -it。ubuntu。 bash。Share images, automate workflows, and。 more。with a。 free。Docker ID: https://hub.docker.com/For。 more。examples and ideas, visit: https://docs.docker.com/get-started/。
非常感谢您的支持和关注!如果你喜欢我的博客内容,想要获得更多有价值的文章,技术分享和实用的生活建议,欢迎扫描下面的二维码,关注我的微信微信官方账号。享受TechLife。
。让我们一起成长探索更多的知识和经验,期待与您的微信官方账号互动!
