Skip to content

Commit 16f9fca

Browse files
committed
[zh] synchronize translate list-all-running-container-images.md
1 parent ed16058 commit 16f9fca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

content/zh/docs/tasks/access-application-cluster/list-all-running-container-images.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,17 +107,17 @@ Pod is returned instead of a list of items.
107107
{{< /note >}}
108108

109109
<!--
110-
## List Containers by Pod
110+
## List Container images by Pod
111111
112112
The formatting can be controlled further by using the `range` operation to
113113
iterate over elements individually.
114114
-->
115-
## 列出 Pod 中的容器
115+
## Pod 列出容器镜像
116116

117117
可以使用 `range` 操作进一步控制格式化,以单独操作每个元素。
118118

119119
```shell
120-
kubectl get pods --all-namespaces -o=jsonpath='{range .items[*]}{"\n"}{.metadata.name}{":\t"}{range .spec.containers[*]}{.image}{", "}{end}{end}' |\
120+
kubectl get pods --all-namespaces -o jsonpath='{range .items[*]}{"\n"}{.metadata.name}{":\t"}{range .spec.containers[*]}{.image}{", "}{end}{end}' |\
121121
sort
122122
```
123123

@@ -132,7 +132,7 @@ following matches only Pods with labels matching `app=nginx`.
132132
要获取匹配特定标签的 Pod,请使用 -l 参数。以下匹配仅与标签 `app=nginx` 相符的 Pod。
133133

134134
```shell
135-
kubectl get pods --all-namespaces -o=jsonpath="{.items[*].spec.containers[*].image}" -l app=nginx
135+
kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec.containers[*].image}" -l app=nginx
136136
```
137137

138138
<!--

0 commit comments

Comments
 (0)