github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/mergeCode/runc/man/runc-run.8.md (about) 1 # NAME 2 runc run - create and run a container 3 4 # SYNOPSIS 5 runc run [command options] <container-id> 6 7 Where "<container-id>" is your name for the instance of the container that you 8 are starting. The name you provide for the container instance must be unique on 9 your host. 10 11 # DESCRIPTION 12 The run command creates an instance of a container for a bundle. The bundle 13 is a directory with a specification file named "config.json" and a root 14 filesystem. 15 16 The specification file includes an args parameter. The args parameter is used 17 to specify command(s) that get run when the container is started. To change the 18 command(s) that get executed on start, edit the args parameter of the spec. See 19 "runc spec --help" for more explanation. 20 21 # OPTIONS 22 --bundle value, -b value path to the root of the bundle directory, defaults to the current directory 23 --console value specify the pty slave path for use with the container 24 --detach, -d detach from the container's process 25 --pid-file value specify the file to write the process id to 26 --no-subreaper disable the use of the subreaper used to reap reparented processes 27 --no-pivot do not use pivot root to jail process inside rootfs. This should be used whenever the rootfs is on top of a ramdisk 28 --no-new-keyring do not create a new session keyring for the container. This will cause the container to inherit the calling processes session key