Merge pull request #34845 from dch1228/patch-1

Update logging.md
This commit is contained in:
Kubernetes Prow Robot
2022-07-06 20:49:32 -07:00
committed by GitHub
@@ -99,8 +99,6 @@ If your pod has multiple containers, specify which container's logs you want to
appending a container name to the command, with a `-c` flag, like so:
-->
你可以使用命令 `kubectl logs --previous` 检索之前容器实例的日志。
如果 Pod 中有多个容器,你应该为该命令附加容器名以访问对应容器的日志。
详见 [`kubectl logs` 文档](/docs/reference/generated/kubectl/kubectl-commands#logs)。
如果 Pod 有多个容器,你应该为该命令附加容器名以访问对应容器的日志,
使用 `-c` 标志来指定要访问的容器的日志,如下所示: