This documentation is for a release that is no longer maintained
See documentation for the latest supported version 3 or the latest supported version 4.2.5.4. 调试CLI命令
2.5.4.1. attach 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
为正在运行的容器附加一个 shell。
示例:从 pod python-1-mz2rf
获取python
容器的输出信息
oc attach python-1-mz2rf -c python
$ oc attach python-1-mz2rf -c python