Skip to content

Commit 037bfce

Browse files
authored
Merge pull request #27142 from ydFu/update-container-runtimes
[zh] Sync setup pages for production-environment\container-runtimes.md
2 parents 525264a + b0192d2 commit 037bfce

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

content/zh/docs/setup/production-environment/container-runtimes.md

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,11 @@ Start a Powershell session, set `$Version` to the desired version (ex: `$Version
240240
{{% /tab %}}
241241
{{< /tabs >}}
242242

243-
#### systemd {#containerd-systemd}
243+
<!--
244+
#### Using the `systemd` cgroup driver {#containerd-systemd}
245+
-->
246+
247+
#### 使用 `systemd` cgroup 驱动程序 {#containerd-systemd}
244248

245249
<!--
246250
To use the `systemd` cgroup driver in `/etc/containerd/config.toml` with `runc`, set
@@ -251,10 +255,8 @@ To use the `systemd` cgroup driver in `/etc/containerd/config.toml` with `runc`,
251255
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
252256
SystemdCgroup = true
253257
```
254-
255-
When using kubeadm, manually configure the
256-
[cgroup driver for kubelet](/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#configure-cgroup-driver-used-by-kubelet-on-control-plane-node).
257258
-->
259+
258260
结合 `runc` 使用 `systemd` cgroup 驱动,在 `/etc/containerd/config.toml` 中设置
259261

260262
```
@@ -264,6 +266,19 @@ When using kubeadm, manually configure the
264266
SystemdCgroup = true
265267
```
266268

269+
<!--
270+
If you apply this change make sure to restart containerd again:
271+
-->
272+
如果您应用此更改,请确保再次重新启动 containerd:
273+
274+
```shell
275+
sudo systemctl restart containerd
276+
```
277+
278+
<!--
279+
When using kubeadm, manually configure the
280+
[cgroup driver for kubelet](/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#configure-cgroup-driver-used-by-kubelet-on-control-plane-node).
281+
-->
267282
当使用 kubeadm 时,请手动配置
268283
[kubelet 的 cgroup 驱动](/docs/setup/production-environment/tools/kubeadm/install-kubeadm/#configure-cgroup-driver-used-by-kubelet-on-control-plane-node).
269284

@@ -567,9 +582,10 @@ kubelet 的 cgroup 驱动程序配置(通常透过 kubeadm 完成)和CRI-O
567582

568583
### Docker
569584
<!--
570-
1. On each of your nodes, install the Docker for your Linux distribution as per [Install Docker Engine](https://docs.docker.com/engine/install/#server)
585+
1. On each of your nodes, install the Docker for your Linux distribution as per [Install Docker Engine](https://docs.docker.com/engine/install/#server). You can find the latest validated version of Docker in this [dependencies](https://git.k8s.io/kubernetes/build/dependencies.yaml) file.
571586
-->
572-
1. 在每个节点上,根据 [安装 Docker 引擎](https://docs.docker.com/engine/install/#server)为你的 Linux 发行版安装 Docker。
587+
1. 在每个节点上,根据[安装 Docker 引擎](https://docs.docker.com/engine/install/#server) 为你的 Linux 发行版安装 Docker。
588+
你可以在此文件中找到最新的经过验证的 Docker 版本[依赖关系](https://git.k8s.io/kubernetes/build/dependencies.yaml)
573589

574590
<!--
575591
2. Configure the Docker daemon, in particular to use systemd for the management of the container’s cgroups.

0 commit comments

Comments
 (0)