mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-10 16:37:34 +00:00
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:
@@ -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 云服务商
|
||||
|
||||
|
||||
Reference in New Issue
Block a user