Skip to content

Commit 415b3e1

Browse files
authored
Merge pull request #51940 from TOMOFUMI-KONDO/#51939
[ja] Sync en -> ja about systemd Containerd configuration
2 parents 25ad171 + 35dfe2f commit 415b3e1

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

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

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,11 @@ Kubernetes {{< skew currentVersion >}}は、デフォルトでCRI APIのv1を使
172172
Linuxでは、containerd用のデフォルトのCRIソケットは`/run/containerd/containerd.sock`です。
173173
Windowsでは、デフォルトのCRIエンドポイントは`npipe://./pipe/containerd-containerd`です。
174174

175-
#### `systemd` cgroupドライバーを構成する
175+
#### `systemd` cgroupドライバーを構成する {#containerd-systemd}
176176

177-
`/etc/containerd/config.toml`内で`runc`が`systemd` cgroupドライバーを使うようにするには、次のように設定します。
177+
`/etc/containerd/config.toml`内で`runc`が`systemd` cgroupドライバーを使うようにするには、Containerdのバージョンに基づいて以下の設定を行ってください。
178+
179+
Containerdバージョン1.x:
178180

179181
```
180182
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
@@ -183,6 +185,15 @@ Windowsでは、デフォルトのCRIエンドポイントは`npipe://./pipe/con
183185
SystemdCgroup = true
184186
```
185187

188+
Containerdバージョン2.x:
189+
190+
```
191+
[plugins.'io.containerd.cri.v1.runtime'.containerd.runtimes.runc]
192+
...
193+
[plugins.'io.containerd.cri.v1.runtime'.containerd.runtimes.runc.options]
194+
SystemdCgroup = true
195+
```
196+
186197
[cgroup v2](/ja/docs/concepts/architecture/cgroups)を使用する場合は`systemd` cgroupドライバーの利用を推奨します。
187198

188199
{{< note >}}

0 commit comments

Comments
 (0)