diff --git a/content/zh-cn/docs/tasks/administer-cluster/migrating-from-dockershim/change-runtime-containerd.md b/content/zh-cn/docs/tasks/administer-cluster/migrating-from-dockershim/change-runtime-containerd.md index 6688fe25f3..1fc585a906 100644 --- a/content/zh-cn/docs/tasks/administer-cluster/migrating-from-dockershim/change-runtime-containerd.md +++ b/content/zh-cn/docs/tasks/administer-cluster/migrating-from-dockershim/change-runtime-containerd.md @@ -38,12 +38,6 @@ and for specific prerequisite follow ## 腾空节点 {#drain-the-node} @@ -51,6 +45,9 @@ Replace `` with the name of your node you are draining. kubectl drain --ignore-daemonsets ``` + 将 `` 替换为你所要腾空的节点的名称 1. 从官方的 Docker 仓库安装 `containerd.io` 包。关于为你所使用的 Linux 发行版来设置 - Docker 仓库,以及安装 `containerd.io` 包的详细说明,可参见 - [开始使用 containerd](https://github.com/containerd/containerd/blob/main/docs/getting-started.md)。 + Docker 仓库,以及安装 `containerd.io` 包的详细说明, + 可参见[开始使用 containerd](https://github.com/containerd/containerd/blob/main/docs/getting-started.md)。 -对于使用 kubeadm 的用户,可以考虑下面的问题: - `kubeadm` 工具将每个主机的 CRI 套接字保存在该主机对应的 Node 对象的注解中。 -使用 `kubeadm` 的用户应该知道,`kubeadm` 工具将每个主机的 CRI 套接字保存在该主机对应的 Node 对象的注解中。 +使用 `kubeadm` 的用户应该知道,`kubeadm` 工具将每个主机的 CRI 套接字保存在该主机对应的 +Node 对象的注解中。 要更改这一注解信息,你可以在一台包含 kubeadm `/etc/kubernetes/admin.conf` 文件的机器上执行以下命令: ```shell @@ -188,7 +183,6 @@ kubectl edit no ## 验证节点处于健康状态 {#verify-that-the-node-is-healthy} 运行 `kubectl get nodes -o wide`,containerd 会显示为我们所更改的节点上的运行时。 + +## 移除 Docker Engine {#remove-docker-engine} + {{% thirdparty-content %}} +上面的命令不会移除你的主机上的镜像、容器、卷或者定制的配置文件。 +要删除这些内容,参阅 Docker 的指令来[卸载 Docker Engine](https://docs.docker.com/engine/install/ubuntu/#uninstall-docker-engine)。 + +{{< caution >}} + +Docker 所提供的卸载 Docker Engine 命令指导中,存在删除 containerd 的风险。 +在执行命令时要谨慎。 +{{< /caution >}} +