runc-create8
Create a container
Usage
runc create
[option ...]
container-id
Overview
The create command creates an instance of a container from a bundle. The bundle is a directory with a specification file named config.json, and a root filesystem.
Options
--bundle|-bpath-
Path to the root of the bundle directory. Default is current directory.
-
--console-socket path -
Path to an
AF_UNIXsocket which will receive a file descriptor referencing the master end of the console's pseudoterminal. See docs/terminals ⟨https://github.com/opencontainers/runc/blob/master/docs/terminals.md⟩.
-
--pid-file path -
Specify the file to write the initial container process' PID to.
-
--no-pivot -
Do not use pivot root to jail process inside rootfs. This should not be used except in exceptional circumstances, and may be unsafe from the security standpoint.
-
--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.
-
--preserve-fds N -
Pass N additional file descriptors to the container (
stdio+$LISTEN_FDS+ N in total). Default is0.
Releases
5 releases since Debian 10 (Buster); the text changed 3 times.
--console-socket since Debian 12 (Bookworm);
--no-new-keyring since Debian 12 (Bookworm);
--no-pivot since Debian 12 (Bookworm);
--pid-file since Debian 12 (Bookworm);
--preserve-fds since Debian 12 (Bookworm).