.TH NAME .PP runc exec \- execute new process inside the container .SH SYNOPSIS .PP runc exec [command options] .PP Where "" is the name for the instance of the container and "" is the command to be executed in the container. .SH EXAMPLE .PP For example, if the container is configured to run the linux ps command the following will output a list of processes running in the container: .PP .RS .nf # runc exec ps .fi .RE .SH OPTIONS .PP \-\-console specify the pty slave path for use with the container \-\-cwd current working directory in the container \-\-env, \-e [\-\-env option \-\-env option] set environment variables \-\-tty, \-t allocate a pseudo\-TTY \-\-user, \-u UID (format: [:]) \-\-process, \-p path to the process.json \-\-detach, \-d detach from the container's process \-\-pid\-file specify the file to write the process id to \-\-process\-label set the asm process label for the process commonly used with selinux \-\-apparmor set the apparmor profile for the process \-\-no\-new\-privs set the no new privileges value for the process \-\-cap, \-c [\-\-cap option \-\-cap option] add a capability to the bounding set for the process