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.4. exec
在容器中执行命令。
示例:从 pod python-1-mz2rf 的python 容器中执行ls命令
oc exec python-1-mz2rf -c python ls
$ oc exec python-1-mz2rf -c python ls