Oc exec: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * oc =Overview= Execute a command in a container.")
 
Line 6: Line 6:


Execute a command in a container.
Execute a command in a container.
Example - execute an interactive shell into the container:
oc exec <''pod-name''> -i -t /bin/bash
Also see [[oc rsh]].

Revision as of 18:15, 21 November 2017

Internal

Overview

Execute a command in a container.

Example - execute an interactive shell into the container:

oc exec <pod-name> -i -t /bin/bash

Also see oc rsh.