www.LinuxHowtos.org





run-create

Section: Misc. Reference Manual Pages (8)
Index Return to Main Contents

 

NAME

run-create - create a container

 

SYNOPSIS

runc create [option ...] containe-id

 

DESCRIPTION

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|-b path
Path to the root of the bundle directory. Default is current directory.

-consol-socket path
Path to an AF_UNIX socket which will receive a file descriptor referencing the master end of the console's pseudoterminal. See docs/terminals [la]https://github.com/opencontainers/runc/blob/master/docs/terminals.md[ra].

-pi-file path
Specify the file to write the initial container process' PID to.

-n-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.

-n-ne-keyring
Do not create a new session keyring for the container. This will cause the container to inherit the calling processes session key.

-preserv-fds N
Pass N additional file descriptors to the container (stdio + $LISTEN_FDS + N in total). Default is 0.

 

SEE ALSO

run-spec(8), run-start(8), runc(8).


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
SEE ALSO