File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
content/zh/docs/concepts/cluster-administration Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -97,22 +97,22 @@ The output is:
97
97
You can use `kubectl logs --previous` to retrieve logs from a previous instantiation of a container.
98
98
If your pod has multiple containers, specify which container's logs you want to access by
99
99
appending a container name to the command, with a `-c` flag, like so:
100
- ```console
101
- kubectl logs counter -c count
102
- ```
103
- See the [`kubectl logs` documentation](/docs/reference/generated/kubectl/kubectl-commands#logs) for more details.
104
100
-->
105
101
你可以使用命令 ` kubectl logs --previous ` 检索之前容器实例的日志。
106
102
如果 Pod 中有多个容器,你应该为该命令附加容器名以访问对应容器的日志。
107
103
详见 [ ` kubectl logs ` 文档] ( /docs/reference/generated/kubectl/kubectl-commands#logs ) 。
108
104
如果 Pod 有多个容器,你应该为该命令附加容器名以访问对应容器的日志,
109
105
使用 ` -c ` 标志来指定要访问的容器的日志,如下所示:
110
- ``` console
111
106
107
+ ``` console
112
108
kubectl logs counter -c count
113
-
114
109
```
115
- 详见 [ kubectl logs 文档] ( /zh/docs/reference/generated/kubectl/kubectl-commands#logs ) 。
110
+
111
+ <!--
112
+ See the [`kubectl logs` documentation](/docs/reference/generated/kubectl/kubectl-commands#logs) for more details.
113
+ -->
114
+ 详见 [ ` kubectl logs ` 文档] ( /docs/reference/generated/kubectl/kubectl-commands#logs ) 。
115
+
116
116
<!--
117
117
## Logging at the node level
118
118
You can’t perform that action at this time.
0 commit comments