Update logging.md

Delete duplicate statements
This commit is contained in:
杜晨昊 2022-07-06 17:28:02 +08:00 committed by GitHub
parent 05aeae9c00
commit 6b106b50ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -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` 标志来指定要访问的容器的日志,如下所示: