Skip to content

Commit 0748c28

Browse files
authored
Merge pull request #32078 from my-git9/patch-24
Update container-environment.md
2 parents 1246fc9 + 6d01a88 commit 0748c28

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

content/zh/docs/concepts/containers/container-environment.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The Pod name and namespace are available as environment variables through the
5151
[downward API](/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/).
5252
5353
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.
5555
-->
5656
### 容器信息
5757

@@ -62,14 +62,13 @@ Pod 名称和命名空间可以通过
6262
[下行 API](/zh/docs/tasks/inject-data-application/downward-api-volume-expose-pod-information/)
6363
转换为环境变量。
6464

65-
Pod 定义中的用户所定义的环境变量也可在容器中使用,就像在 Docker 镜像中静态指定的任何环境变量一样。
65+
Pod 定义中的用户所定义的环境变量也可在容器中使用,就像在 container 镜像中静态指定的任何环境变量一样。
6666

6767
<!--
6868
### Cluster information
6969
7070
A list of all services that were running when a Container was created is available to that Container as environment variables.
7171
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.
7372
7473
For a service named *foo* that maps to a Container named *bar*,
7574
the following variables are defined:
@@ -78,7 +77,6 @@ the following variables are defined:
7877

7978
创建容器时正在运行的所有服务都可用作该容器的环境变量。
8079
这里的服务仅限于新容器的 Pod 所在的名字空间中的服务,以及 Kubernetes 控制面的服务。
81-
这些环境变量与 Docker 链接的语法相同。
8280

8381
对于名为 *foo* 的服务,当映射到名为 *bar* 的容器时,以下变量是被定义了的:
8482

0 commit comments

Comments
 (0)