Skip to content

Commit 1cfb729

Browse files
authored
Merge pull request #41476 from KKtheGhost/sync/tasks_find-out-runtime-you-use
[zh] sync migrating-from-dockershim/find-out-runtime-you-use.md
2 parents 742285c + 81a1394 commit 1cfb729

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

content/zh-cn/docs/tasks/administer-cluster/migrating-from-dockershim/find-out-runtime-you-use.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ node-3 Ready v1.16.15 docker://19.3.1
6969
```
7070
<!--
7171
If your runtime shows as Docker Engine, you still might not be affected by the
72-
removal of dockershim in Kubernetes v1.24. [Check the runtime
73-
endpoint](#which-endpoint) to see if you use dockershim. If you don't use
74-
dockershim, you aren't affected.
72+
removal of dockershim in Kubernetes v1.24.
73+
[Check the runtime endpoint](#which-endpoint) to see if you use dockershim.
74+
If you don't use dockershim, you aren't affected.
7575
7676
For containerd, the output is similar to this:
7777
-->
@@ -154,17 +154,18 @@ nodes.
154154
155155
* If your nodes use Kubernetes v1.23 and earlier and these flags aren't
156156
present or if the `--container-runtime` flag is not `remote`,
157-
you use the dockershim socket with Docker Engine.
157+
you use the dockershim socket with Docker Engine. The `--container-runtime` command line
158+
argument is not available in Kubernetes v1.27 and later.
158159
* If the `--container-runtime-endpoint` flag is present, check the socket
159160
name to find out which runtime you use. For example,
160161
`unix:///run/containerd/containerd.sock` is the containerd endpoint.
161162
-->
162163
2. 在命令的输出中,查找 `--container-runtime``--container-runtime-endpoint` 标志。
163164

164-
* 如果 Kubernetes 集群版本是 v1.23 或者更早的版本,并且这两个参数不存在
165-
或者 `container-runtime` 标志值不是 `remote`,则你在通过 dockershim 套接字使用
166-
Docker Engine。
167-
或者如果集群使用的 Docker engine 和 dockershim socket,则输出结果中 `--container-runtime` 不是 `remote`,
165+
* 如果你的节点使用 Kubernetes v1.23 或更早的版本,这两个参数不存在
166+
或者 `--container-runtime` 标志值不是 `remote`,则你在通过 dockershim 套接字使用
167+
Docker Engine。
168+
在 Kubernetes v1.27 及以后的版本中,`--container-runtime` 命令行参数不再可用。
168169
* 如果设置了 `--container-runtime-endpoint` 参数,查看套接字名称即可得知当前使用的运行时。
169170
如若套接字 `unix:///run/containerd/containerd.sock` 是 containerd 的端点。
170171

0 commit comments

Comments
 (0)