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.30.2. 基本的な使用方法
リモートコンテナーコマンド実行のサポートは CLI に組み込まれて います。
oc exec <pod> [-c <container>] <command> [<arg_1> ... <arg_n>]
$ oc exec <pod> [-c <container>] <command> [<arg_1> ... <arg_n>]
以下に例を示します。
oc exec mypod date
$ oc exec mypod date
Thu Apr 9 02:21:53 UTC 2015