Skip to content

Commit 987b789

Browse files
authored
Merge pull request #35402 from windsonsea/conyhf
[zh-cn] Resync /migrating-from-dockershim/change-runtime-containerd.md
2 parents 27bc9e9 + f7ca4bf commit 987b789

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

content/zh-cn/docs/tasks/administer-cluster/migrating-from-dockershim/change-runtime-containerd.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ content_type: task
1212

1313
<!--
1414
This task outlines the steps needed to update your container runtime to containerd from Docker. It
15-
is applicable for cluster operators running Kubernetes 1.23 or earlier. Also this covers an
16-
example scenario for migrating from dockershim to containerd and alternative container runtimes
15+
is applicable for cluster operators running Kubernetes 1.23 or earlier. This also covers an
16+
example scenario for migrating from dockershim to containerd. Alternative container runtimes
1717
can be picked from this [page](/docs/setup/production-environment/container-runtimes/).
1818
-->
1919
本任务给出将容器运行时从 Docker 改为 containerd 所需的步骤。
2020
此任务适用于运行 1.23 或更早版本 Kubernetes 的集群操作人员。
21-
同时,此任务也涉及从 dockershim 迁移到 containerd 的示例场景
22-
以及可以从[此页面](/zh-cn/docs/setup/production-environment/container-runtimes/)
23-
获得的其他容器运行时列表
21+
同时,此任务也涉及从 dockershim 迁移到 containerd 的示例场景
22+
有关其他备选的容器运行时,可查阅
23+
[此页面](/zh-cn/docs/setup/production-environment/container-runtimes/)进行拣选
2424

2525
## {{% heading "prerequisites" %}}
2626

@@ -48,7 +48,7 @@ kubectl drain <node-to-drain> --ignore-daemonsets
4848
<!--
4949
Replace `<node-to-drain>` with the name of your node you are draining.
5050
-->
51-
`<node-to-drain>` 替换为你所要腾空的节点的名称
51+
`<node-to-drain>` 替换为你所要腾空的节点的名称
5252

5353
<!--
5454
## Stop the Docker daemon
@@ -159,13 +159,13 @@ then run the following commands:
159159
160160
Edit the file `/var/lib/kubelet/kubeadm-flags.env` and add the containerd runtime to the flags.
161161
`--container-runtime=remote` and
162-
`--container-runtime-endpoint=unix:///run/containerd/containerd.sock"`.
162+
`--container-runtime-endpoint=unix:///run/containerd/containerd.sock`.
163163
-->
164164
## 配置 kubelet 使用 containerd 作为其容器运行时
165165

166166
编辑文件 `/var/lib/kubelet/kubeadm-flags.env`,将 containerd 运行时添加到标志中:
167167
`--container-runtime=remote`
168-
`--container-runtime-endpoint=unix:///run/containerd/containerd.sock"`
168+
`--container-runtime-endpoint=unix:///run/containerd/containerd.sock`
169169

170170
<!--
171171
Users using kubeadm should be aware that the `kubeadm` tool stores the CRI socket for each host as
@@ -233,7 +233,7 @@ Finally if everything goes well, remove Docker.
233233
-->
234234
最后,在一切顺利时删除 Docker。
235235

236-
{{< tabs name="tab-remove-docker-enigine" >}}
236+
{{< tabs name="tab-remove-docker-engine" >}}
237237
{{% tab name="CentOS" %}}
238238

239239
```shell

0 commit comments

Comments
 (0)