mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-08-12 01:17:42 +00:00
fix(content): harden Docker practice guide
This commit is contained in:
@@ -50,9 +50,7 @@ $ sudo dnf -y install dnf-plugins-core
|
||||
执行下面的命令添加 `dnf` 软件源:
|
||||
|
||||
```bash
|
||||
$ sudo dnf config-manager \
|
||||
--add-repo \
|
||||
https://download.docker.com/linux/fedora/docker-ce.repo
|
||||
$ sudo dnf config-manager addrepo --from-repofile https://download.docker.com/linux/fedora/docker-ce.repo
|
||||
```
|
||||
如果需要测试版本的 Docker 请使用以下命令:
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ Registry Mirrors:
|
||||
|
||||
### 3.9.6 Kubernetes 官方镜像地址迁移
|
||||
|
||||
可以登录 [阿里云容器镜像服务](https://www.aliyun.com/product/acr?source=5176.11533457&userCode=8lx5zmtu&type=copy),在 **镜像中心** -> **镜像搜索** 中查找。
|
||||
可以登录 [阿里云容器镜像服务](https://www.aliyun.com/product/acr),在 **镜像中心** -> **镜像搜索** 中查找。
|
||||
|
||||
Kubernetes 社区已将官方镜像地址从 `k8s.gcr.io` 迁移到 `registry.k8s.io`。建议优先使用新地址。
|
||||
|
||||
@@ -108,4 +108,4 @@ $ docker pull registry.k8s.io/xxx
|
||||
|
||||
某些云服务商提供了 **仅供内部** 访问的镜像服务,当您的 Docker 运行在云平台时可以选择它们。
|
||||
|
||||
* [腾讯云 `https://mirror.ccs.tencentyun.com`](https://cloud.tencent.com/act/cps/redirect?redirect=10058&cps_key=3a5255852d5db99dcd5da4c72f05df61)
|
||||
* [腾讯云 `https://mirror.ccs.tencentyun.com`](https://cloud.tencent.com/product/tke)
|
||||
|
||||
@@ -18,7 +18,7 @@ Docker Engine 主要提供 `stable` 和 `test` 两个更新频道;`test.docker
|
||||
|
||||
**开发环境**(本地开发机、测试服务器):
|
||||
|
||||
- 使用**脚本自动安装**或**包管理器直接安装**
|
||||
- 配置 **Docker 官方源后** 使用包管理器安装,或在一次性测试环境使用官方脚本自动安装
|
||||
- 如果你想快速上手,官方脚本(`get.docker.com`)是最便捷的选择
|
||||
- 国内用户注意:这一步一定要选对镜像源,否则网络卡顿会严重影响体验
|
||||
|
||||
|
||||
Reference in New Issue
Block a user