parent
05aeae9c00
commit
6b106b50ac
|
|
@ -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` 标志来指定要访问的容器的日志,如下所示:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue