1runc-exec(8)                System Manager's Manual               runc-exec(8)
2
3
4

NAME

6       runc exec - execute new process inside the container
7
8
9

SYNOPSIS

11       runc  exec  [command  options]  <container-id>  --  <container command>
12       [args...]
13
14
15       Where "<container-id>" is the name for the instance  of  the  container
16       and  "<container  command>"  is  the command to be executed in the con‐
17       tainer.
18
19
20

EXAMPLE

22       For example, if the container is configured to run the linux ps command
23       the following will output a list of processes running in the container:
24
25
26                 # runc exec <container-id> ps
27
28
29
30

OPTIONS

32              --console value                          specify the pty slave path for use with the container
33              --cwd value                              current working directory in the container
34              --env value, -e value                    set environment variables
35              --tty, -t                                allocate a pseudo-TTY
36              --user value, -u value                   UID (format: <uid>[:<gid>])
37              --additional-gids value, -g value        additional gids
38              --process value, -p value                path to the process.json
39              --detach, -d                             detach from the container's process
40              --pid-file value                         specify the file to write the process id to
41              --process-label value                    set the asm process label for the process commonly used with selinux
42              --apparmor value                         set the apparmor profile for the process
43              --no-new-privs                           set the no new privileges value for the process
44              --cap value, -c value                    add a capability to the bounding set for the process
45              --no-subreaper                           disable the use of the subreaper used to reap reparented processes
46              --preserve-fds value                     pass N additional file descriptors to the container (stdio + $LISTEN_FDS + N in total) (default: 0)
47
48
49
50
51                                                                  runc-exec(8)
Impressum