1NAME()                                                                  NAME()
2
3
4
5       runc exec - execute new process inside the container
6
7
8

SYNOPSIS

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

EXAMPLE

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

OPTIONS

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