1
1
---
2
- title : 检查弃用 Dockershim 是否对你有影响
2
+ title : 检查移除 Dockershim 是否对你有影响
3
3
content_type : task
4
4
weight : 20
5
5
---
6
6
<!--
7
- title: Check whether Dockershim deprecation affects you
8
- content_type: task
7
+ title: Check whether dockershim removal affects you
8
+ content_type: task
9
9
reviewers:
10
10
- SergeyKanzhelev
11
11
weight: 20
@@ -23,18 +23,17 @@ Kubernetes 的 `dockershim` 组件使得你可以把 Docker 用作 Kubernetes
23
23
{{< glossary_tooltip text="容器运行时" term_id="container-runtime" >}}。
24
24
在 Kubernetes v1.24 版本中,内建组件 ` dockershim ` 被移除。
25
25
26
-
27
26
<!--
28
27
This page explains how your cluster could be using Docker as a container runtime,
29
28
provides details on the role that `dockershim` plays when in use, and shows steps
30
29
you can take to check whether any workloads could be affected by `dockershim` removal.
31
30
-->
32
31
本页讲解你的集群把 Docker 用作容器运行时的运作机制,
33
32
并提供使用 ` dockershim ` 时,它所扮演角色的详细信息,
34
- 继而展示了一组操作,可用来检查弃用 ` dockershim ` 对你的工作负载是否有影响。
33
+ 继而展示了一组操作,可用来检查移除 ` dockershim ` 对你的工作负载是否有影响。
35
34
36
35
<!--
37
- ## Finding if your app has a dependencies on Docker {#find-docker-dependencies}
36
+ ## Finding if your app has a dependencies on Docker {#find-docker-dependencies}
38
37
-->
39
38
## 检查你的应用是否依赖于 Docker {#find-docker-dependencies}
40
39
@@ -106,7 +105,7 @@ execute the containers that make up a Kubernetes pod. Kubernetes is responsible
106
105
and scheduling of Pods; on each node, the {{< glossary_tooltip text="kubelet" term_id="kubelet" >}}
107
106
uses the container runtime interface as an abstraction so that you can use any compatible
108
107
container runtime.
109
- -->
108
+ -->
110
109
[ 容器运行时] ( /zh-cn/docs/concepts/containers/#container-runtimes ) 是一个软件,
111
110
用来运行组成 Kubernetes Pod 的容器。
112
111
Kubernetes 负责编排和调度 Pod;在每一个节点上,{{< glossary_tooltip text="kubelet" term_id="kubelet" >}}
@@ -119,7 +118,7 @@ The CRI was designed to allow this kind of flexibility - and the kubelet began s
119
118
because Docker existed before the CRI specification was invented, the Kubernetes project created an
120
119
adapter component, `dockershim`. The dockershim adapter allows the kubelet to interact with Docker as
121
120
if Docker were a CRI compatible runtime.
122
- -->
121
+ -->
123
122
在早期版本中,Kubernetes 提供的兼容性支持一个容器运行时:Docker。
124
123
在 Kubernetes 后来的发展历史中,集群运营人员希望采用别的容器运行时。
125
124
于是 CRI 被设计出来满足这类灵活性需求 - 而 kubelet 亦开始支持 CRI。
@@ -128,9 +127,9 @@ dockershim 适配器允许 kubelet 与 Docker 交互,就好像 Docker 是一
128
127
129
128
<!--
130
129
You can read about it in [Kubernetes Containerd integration goes GA](/blog/2018/05/24/kubernetes-containerd-integration-goes-ga/) blog post.
131
- -->
130
+ -->
132
131
你可以阅读博文
133
- [ Kubernetes 正式支持集成 Containerd] ( /zh-cn/ blog/2018/05/24/kubernetes-containerd-integration-goes-ga/ ) 。
132
+ [ Kubernetes 正式支持集成 Containerd] ( /blog/2018/05/24/kubernetes-containerd-integration-goes-ga/ ) 。
134
133
135
134
<!-- Dockershim vs. CRI with Containerd -->
136
135
![ Dockershim 和 Containerd CRI 的实现对比图] ( /images/blog/2018-05-24-kubernetes-containerd-integration-goes-ga/cri-containerd.png )
@@ -141,7 +140,7 @@ same containers can be run by container runtimes like Containerd as before. But
141
140
now, since containers schedule directly with the container runtime, they are not visible to Docker.
142
141
So any Docker tooling or fancy UI you might have used
143
142
before to check on these containers is no longer available.
144
- -->
143
+ -->
145
144
切换到 Containerd 容器运行时可以消除掉中间环节。
146
145
所有相同的容器都可由 Containerd 这类容器运行时来运行。
147
146
但是现在,由于直接用容器运行时调度容器,它们对 Docker 是不可见的。
@@ -151,7 +150,7 @@ before to check on these containers is no longer available.
151
150
You cannot get container information using `docker ps` or `docker inspect`
152
151
commands. As you cannot list containers, you cannot get logs, stop containers,
153
152
or execute something inside container using `docker exec`.
154
- -->
153
+ -->
155
154
你不能再使用 ` docker ps ` 或 ` docker inspect ` 命令来获取容器信息。
156
155
由于你不能列出容器,因此你不能获取日志、停止容器,甚至不能通过 ` docker exec ` 在容器中执行命令。
157
156
@@ -160,10 +159,9 @@ or execute something inside container using `docker exec`.
160
159
If you're running workloads via Kubernetes, the best way to stop a container is through
161
160
the Kubernetes API rather than directly through the container runtime (this advice applies
162
161
for all container runtimes, not only Docker).
163
- -->
162
+ -->
164
163
如果你在用 Kubernetes 运行工作负载,最好通过 Kubernetes API 停止容器,
165
- 而不是通过容器运行时来停止它们
166
- (此建议适用于所有容器运行时,不仅仅是针对 Docker)。
164
+ 而不是通过容器运行时来停止它们(此建议适用于所有容器运行时,不仅仅是针对 Docker)。
167
165
{{< /note >}}
168
166
169
167
<!--
@@ -180,9 +178,9 @@ by Kubernetes.
180
178
181
179
<!--
182
180
- Read [Migrating from dockershim](/docs/tasks/administer-cluster/migrating-from-dockershim/) to understand your next steps
183
- - Read the [dockershim deprecation FAQ](/blog/2020/12/02/dockershim-faq/) article for more information.
181
+ - Read the [dockershim deprecation FAQ](/blog/2020/12/02/dockershim-faq/) article for more information.
184
182
-->
185
183
- 阅读[ 从 dockershim 迁移] ( /zh-cn/docs/tasks/administer-cluster/migrating-from-dockershim/ ) ,
186
184
以了解你的下一步工作。
187
- - 阅读[ dockershim 弃用常见问题解答 ] ( /zh-cn/blog/2020/12/02/dockershim-faq/ ) 文章 ,了解更多信息。
185
+ - 阅读[ 弃用 Dockershim 的常见问题 ] ( /zh-cn/blog/2020/12/02/dockershim-faq/ ) ,了解更多信息。
188
186
0 commit comments