Oc exec: Difference between revisions
Jump to navigation
Jump to search
(Created page with "=Internal= * oc =Overview= Execute a command in a container.") |
|||
(One intermediate revision by the same user not shown) | |||
Line 6: | Line 6: | ||
Execute a command in a container. | Execute a command in a container. | ||
oc exec [options] <''pod-name''> [-c <''container-id''>] -- command [args ...] | |||
Example - execute an interactive shell into the container: | |||
oc exec <''pod-name''> -i -t /bin/bash | |||
Also see [[oc rsh]]. |