@@ -3,24 +3,26 @@ layout: blog
3
3
title : " 别慌: Kubernetes 和 Docker"
4
4
date : 2020-12-02
5
5
slug : dont-panic-kubernetes-and-docker
6
+ evergreen : true
6
7
---
7
8
<!--
8
9
layout: blog
9
10
title: "Don't Panic: Kubernetes and Docker"
10
11
date: 2020-12-02
11
12
slug: dont-panic-kubernetes-and-docker
13
+ evergreen: true
12
14
-->
13
15
14
16
** 作者:** Jorge Castro, Duffie Cooley, Kat Cosgrove, Justin Garrison, Noah Kantrowitz, Bob Killen, Rey Lejano, Dan “POP” Papandrea, Jeffrey Sica, Davanum “Dims” Srinivas
15
17
16
18
<!--
17
- _Update: Kubernetes support for Docker via `dockershim` is now deprecated .
18
- For more information, read the [deprecation notice ](/blog/2020/12/08/kubernetes-1-20-release-announcement/# dockershim-deprecation ).
19
+ **Update:** _Kubernetes support for Docker via `dockershim` is now removed .
20
+ For more information, read the [removal FAQ ](/dockershim).
19
21
You can also discuss the deprecation via a dedicated [GitHub issue](https://github.com/kubernetes/kubernetes/issues/106917)._
20
22
-->
21
- _ 更新 :Kubernetes 通过 ` dockershim ` 对 Docker 的支持现已弃用 。
22
- 有关更多信息,请阅读[ 弃用通知 ] ( /zh/blog/2020/12/08/kubernetes-1-20-release-announcement/# dockershim-deprecation ) 。
23
- 你还可以通过专门的 [ GitHub issue] ( https://github.com/kubernetes/kubernetes/issues/106917 ) 讨论弃用。_
23
+ ** 更新 ** :Kubernetes 通过 ` dockershim ` 对 Docker 的支持现已移除 。
24
+ 有关更多信息,请阅读[ 移除 FAQ ] ( /zh/dockershim ) 。
25
+ 你还可以通过专门的 [ GitHub issue] ( https://github.com/kubernetes/kubernetes/issues/106917 ) 讨论弃用。
24
26
25
27
<!--
26
28
Kubernetes is [deprecating
@@ -58,32 +60,31 @@ build` can still run in your Kubernetes cluster.
58
60
Docker 仍然是构建容器的利器,使用命令 ` docker build ` 构建的镜像在 Kubernetes 集群中仍然可以运行。
59
61
60
62
<!--
61
- If you’re using a managed Kubernetes service like GKE, EKS, or AKS (which [defaults to containerd](https://github.com/Azure/AKS/releases/tag/2020-11-16)) you will need to
63
+ If you’re using a managed Kubernetes service like AKS, EkS or GKE, you will need to
62
64
make sure your worker nodes are using a supported container runtime before
63
65
Docker support is removed in a future version of Kubernetes. If you have node
64
66
customizations you may need to update them based on your environment and runtime
65
67
requirements. Please work with your service provider to ensure proper upgrade
66
68
testing and planning.
67
69
-->
68
- 如果你正在使用 GKE、EKS、或 AKS
69
- ([ 默认使用 containerd] ( https://github.com/Azure/AKS/releases/tag/2020-11-16 ) )
70
- 这类托管 Kubernetes 服务,你需要在 Kubernetes 后续版本移除对 Docker 支持之前,
70
+ 如果你正在使用 GKE、EKS、或 AKS 这类托管 Kubernetes 服务,
71
+ 你需要在 Kubernetes 后续版本移除对 Docker 支持之前,
71
72
确认工作节点使用了被支持的容器运行时。
72
73
如果你的节点被定制过,你可能需要根据你自己的环境和运行时需求更新它们。
73
74
请与你的服务供应商协作,确保做出适当的升级测试和计划。
74
75
75
76
<!--
76
77
If you’re rolling your own clusters, you will also need to make changes to avoid
77
78
your clusters breaking. At v1.20, you will get a deprecation warning for Docker.
78
- When Docker runtime support is removed in a future release (currently planned
79
- for the 1.22 release in late 2021) of Kubernetes it will no longer be supported
79
+ When Docker runtime support is removed in a future release (<del> currently planned
80
+ for the 1.22 release in late 2021</del> ) of Kubernetes it will no longer be supported
80
81
and you will need to switch to one of the other compliant container runtimes,
81
82
like containerd or CRI-O. Just make sure that the runtime you choose supports
82
83
the docker daemon configurations you currently use (e.g. logging).
83
84
-->
84
85
如果你正在运营你自己的集群,那还应该做些工作,以避免集群中断。
85
86
在 v1.20 版中,你仅会得到一个 Docker 的弃用警告。
86
- 当对 Docker 运行时的支持在 Kubernetes 某个后续发行版(目前的计划是 2021 年晚些时候的 1.22 版)中被移除时,
87
+ 当对 Docker 运行时的支持在 Kubernetes 某个后续发行版(< del > 目前的计划是 2021 年晚些时候的 1.22 版</ del > )中被移除时,
87
88
你需要切换到 containerd 或 CRI-O 等兼容的容器运行时。
88
89
只要确保你选择的运行时支持你当前使用的 Docker 守护进程配置(例如 logging)。
89
90
0 commit comments