Refresh install guidance

# Conflicts:
#	03_install/3.1_ubuntu.md
#	03_install/3.2_debian.md
#	03_install/3.3_fedora.md
#	03_install/3.9_mirror.md
This commit is contained in:
yeasy
2026-04-22 08:24:38 -07:00
parent c9c72618c3
commit 1fc64ab875
12 changed files with 250 additions and 370 deletions
+9 -9
View File
@@ -11,10 +11,10 @@
> **重要提示**国内大多数 Docker Hub 加速服务已于 2024 年中旬关闭包括阿里云腾讯云网易云百度云等如下推荐的镜像源可用性因人而异建议先测试可用性再配置
1. **云服务器用户**优先使用所在云平台提供的内部加速器见本页末尾"云服务商"部分
2. **本地开发用户**从以下社区维护的镜像中选择推荐 `docker.1ms.run``dockerproxy.net` DaoCloud `docker.m.daocloud.io`
2. **本地开发用户**优先使用自建 pull-through cache如果必须依赖社区镜像请先用上面的测试仓库确认实时可用性
3. **代理方案**如有条件可配置 HTTP 代理直接访问 Docker Hub
本节以 [毫秒镜像](https://docker.1ms.run) 镜像服务 `https://docker.1ms.run` 为例进行介绍。由于镜像加速服务可用性经常变动,建议查阅 [docker-practice/docker-registry-cn-mirror-test](https://github.com/docker-practice/docker-registry-cn-mirror-test) 获取最新实时状态。
更稳妥的长期方案是使用**自己控制的 pull-through cache / registry mirror**或者优先使用云厂商提供的内网镜像下文统一用 `https://<your-registry-mirror>` 作为占位符如果你选择第三方公共站请先确认可用性服务条款和缓存策略
### 3.9.2 Ubuntu 22.04+Debian 12+Rocky/Alma/CentOS Stream 9+
@@ -32,7 +32,7 @@ $ systemctl cat docker | grep '\-\-registry\-mirror'
```json
{
"registry-mirrors": [
"https://docker.1ms.run"
"https://<your-registry-mirror>"
]
}
```
@@ -47,12 +47,12 @@ $ sudo systemctl restart docker
### 3.9.3 Windows 10/11
对于使用 `Windows 10/11` 的用户在任务栏托盘 Docker 图标内右键菜单选择 `Change settings`打开配置窗口后在左侧导航菜单选择 `Docker Engine`在右侧像下边一样编辑 json 文件之后点击 `Apply & Restart` 保存后 Docker 就会重启并应用配置的镜像地址了
对于使用 `Windows 10/11` 的用户在任务栏托盘 Docker 图标内打开 `Settings`在左侧导航菜单选择 `Docker Engine`在右侧像下边一样编辑 JSON 文件之后点击 `Apply & Restart` 保存后 Docker 就会重启并应用配置的镜像地址了
```json
{
"registry-mirrors": [
"https://docker.1ms.run"
"https://<your-registry-mirror>"
]
}
```
@@ -64,7 +64,7 @@ $ sudo systemctl restart docker
```json
{
"registry-mirrors": [
"https://docker.1ms.run"
"https://<your-registry-mirror>"
]
}
```
@@ -75,12 +75,12 @@ $ sudo systemctl restart docker
```bash
Registry Mirrors:
https://docker.1ms.run/
https://<your-registry-mirror>/
```
### 3.9.6 Kubernetes 官方镜像地址迁移
可以登录[阿里云容器镜像服务](https://www.aliyun.com/product/acr?source=5176.11533457&userCode=8lx5zmtu&type=copy)**镜像中心**->**镜像搜索** 查找。
可以登录 [阿里云容器镜像服务](https://www.aliyun.com/product/acr?source=5176.11533457&userCode=8lx5zmtu&type=copy),在 **镜像中心** -> **镜像搜索** 查找。
Kubernetes 社区已将官方镜像地址从 `k8s.gcr.io` 迁移到 `registry.k8s.io`建议优先使用新地址
@@ -102,7 +102,7 @@ $ docker pull registry.k8s.io/xxx
* https://hub-mirror.c.163.com (网易云镜像已于 2024 年关闭)
* https://mirror.baidubce.com (百度云镜像已停止)
建议 **watch (页面右上角)** [镜像测试仓库](https://github.com/docker-practice/docker-registry-cn-mirror-test) 这个 GitHub 仓库,我们会实时更新各镜像源的可用状态。
建议 **watch页面右上角** [镜像测试仓库](https://github.com/docker-practice/docker-registry-cn-mirror-test) 这个 GitHub 仓库,我们会持续更新各镜像源的可用状态。
### 3.9.8 云服务商