Skip to main content
Run a command in a container of a running pod or sandbox. The target is addressed as pod/<name> or sandbox/<name>, and the command with its arguments must follow a — separator. Use —container to select a container when the workload has more than one. Interactive TTY sessions require both —interactive and —tty. The CLI exits with the remote command’s exit code.

Usage

Flags

Inherited flags

Examples