Skip to content

Commit c957995

Browse files
* Sync en -> ja about systemd Containerd configuration
Systemd configuration based on Containerd version was added to the English version at this commit : 7004a73 Sync this change to the Japanese version.
1 parent 1b03382 commit c957995

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

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

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,12 @@ 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ドライバーを使うようにするには、
178+
Containerdのバージョンに基づいて以下の設定を行ってください。
179+
180+
Containerd バージョン 1.x:
178181

179182
```
180183
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
@@ -183,6 +186,15 @@ Windowsでは、デフォルトのCRIエンドポイントは`npipe://./pipe/con
183186
SystemdCgroup = true
184187
```
185188

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

188200
{{< note >}}

0 commit comments

Comments
 (0)