File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
content/zh/docs/concepts/containers Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ The Pod name and namespace are available as environment variables through the
51
51
[downward API](/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/).
52
52
53
53
User defined environment variables from the Pod definition are also available to the Container,
54
- as are any environment variables specified statically in the Docker image.
54
+ as are any environment variables specified statically in the container image.
55
55
-->
56
56
### 容器信息
57
57
@@ -62,14 +62,13 @@ Pod 名称和命名空间可以通过
62
62
[ 下行 API] ( /zh/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/ )
63
63
转换为环境变量。
64
64
65
- Pod 定义中的用户所定义的环境变量也可在容器中使用,就像在 Docker 镜像中静态指定的任何环境变量一样。
65
+ Pod 定义中的用户所定义的环境变量也可在容器中使用,就像在 container 镜像中静态指定的任何环境变量一样。
66
66
67
67
<!--
68
68
### Cluster information
69
69
70
70
A list of all services that were running when a Container was created is available to that Container as environment variables.
71
71
This list is limited to services within the same namespace as the new Container's Pod and Kubernetes control plane services.
72
- Those environment variables match the syntax of Docker links.
73
72
74
73
For a service named *foo* that maps to a Container named *bar*,
75
74
the following variables are defined:
@@ -78,7 +77,6 @@ the following variables are defined:
78
77
79
78
创建容器时正在运行的所有服务都可用作该容器的环境变量。
80
79
这里的服务仅限于新容器的 Pod 所在的名字空间中的服务,以及 Kubernetes 控制面的服务。
81
- 这些环境变量与 Docker 链接的语法相同。
82
80
83
81
对于名为 * foo* 的服务,当映射到名为 * bar* 的容器时,以下变量是被定义了的:
84
82
You can’t perform that action at this time.
0 commit comments