Documentation
¶
Overview ¶
runc is a command line client for running applications packaged according to the Open Container Initiative (OCI) format and is a compliant implementation of the Open Container Initiative specification.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
internal
|
|
|
linux
Package linux provides minimal wrappers around Linux system calls, primarily to provide support for automatic EINTR-retries.
|
Package linux provides minimal wrappers around Linux system calls, primarily to provide support for automatic EINTR-retries. |
|
pathrs
Package pathrs provides wrappers around filepath-securejoin to add the minimum set of features needed from libpathrs that are not provided by filepath-securejoin, with the eventual goal being that these can be used to ease the transition by converting them stubs when enabling libpathrs builds.
|
Package pathrs provides wrappers around filepath-securejoin to add the minimum set of features needed from libpathrs that are not provided by filepath-securejoin, with the eventual goal being that these can be used to ease the transition by converting them stubs when enabling libpathrs builds. |
|
sys
Package sys is an internal package that contains helper methods for dealing with Linux that are more complicated than basic wrappers.
|
Package sys is an internal package that contains helper methods for dealing with Linux that are more complicated than basic wrappers. |
|
third_party/systemd/activation
Package activation implements primitives for systemd socket activation.
|
Package activation implements primitives for systemd socket activation. |
|
Package libcontainer provides a native Go implementation for creating containers with namespaces, cgroups, capabilities, and filesystem access controls.
|
Package libcontainer provides a native Go implementation for creating containers with namespaces, cgroups, capabilities, and filesystem access controls. |
|
apparmor
Package apparmor provides a minimal set of helpers to configure the AppArmor profile of the current process, effectively acting as a very stripped-down version of libapparmor.
|
Package apparmor provides a minimal set of helpers to configure the AppArmor profile of the current process, effectively acting as a very stripped-down version of libapparmor. |
|
capabilities
Package capabilities provides helpers for managing Linux capabilities.
|
Package capabilities provides helpers for managing Linux capabilities. |
|
configs
Package configs provides various container-related configuration types used by libcontainer.
|
Package configs provides various container-related configuration types used by libcontainer. |
|
configs/validate
Package validate provides helpers for validating configuration.
|
Package validate provides helpers for validating configuration. |
|
devices
Package devices provides some helper functions for constructing device configurations for runc.
|
Package devices provides some helper functions for constructing device configurations for runc. |
|
exeseal
Package exeseal provides mechanisms for sealing /proc/self/exe and thus protecting the runc binary against CVE-2019-5736-style attacks.
|
Package exeseal provides mechanisms for sealing /proc/self/exe and thus protecting the runc binary against CVE-2019-5736-style attacks. |
|
integration
Package integration is used for integration testing of libcontainer.
|
Package integration is used for integration testing of libcontainer. |
|
internal/userns
Package userns provides helpers for interacting with Linux user namespaces.
|
Package userns provides helpers for interacting with Linux user namespaces. |
|
keys
Package keys provides helpers for Linux keyrings.
|
Package keys provides helpers for Linux keyrings. |
|
logs
Package logs provides helpers for logging used within runc (specifically for forwarding logs from "runc init" to the main runc process).
|
Package logs provides helpers for logging used within runc (specifically for forwarding logs from "runc init" to the main runc process). |
|
nsenter
Package nsenter implements the namespace creation and joining logic of runc.
|
Package nsenter implements the namespace creation and joining logic of runc. |
|
nsenter/test
Package escapetest is part of the escape_json_string unit test.
|
Package escapetest is part of the escape_json_string unit test. |
|
seccomp
Package seccomp provides runc-specific helpers for loading and managing seccomp profiles.
|
Package seccomp provides runc-specific helpers for loading and managing seccomp profiles. |
|
seccomp/patchbpf
Package patchbpf provides utilities for patching libseccomp-generated cBPF programs in order to handle unknown syscalls and ENOSYS more gracefully.
|
Package patchbpf provides utilities for patching libseccomp-generated cBPF programs in order to handle unknown syscalls and ENOSYS more gracefully. |
|
specconv
Package specconv implements conversion of specifications to libcontainer configurations
|
Package specconv implements conversion of specifications to libcontainer configurations |
|
system
Package system provides wrappers for Linux system operations.
|
Package system provides wrappers for Linux system operations. |
|
system/kernelversion
Package kernelversion provides a method to check whether the running kernel version is at least a minimum kernel version.
|
Package kernelversion provides a method to check whether the running kernel version is at least a minimum kernel version. |
|
utils
Package utils provides general helper utilities used in libcontainer.
|
Package utils provides general helper utilities used in libcontainer. |
|
tests
|
|
|
cmd/fs-idmap
command
fs-idmap is a command-line tool to detect if a filesystem associated with a given path supports id-mapped mounts.
|
fs-idmap is a command-line tool to detect if a filesystem associated with a given path supports id-mapped mounts. |
|
cmd/key_label
command
key_label is a simple program to print the current session keyring name and its security label, to be run inside container (see selinux.bats).
|
key_label is a simple program to print the current session keyring name and its security label, to be run inside container (see selinux.bats). |
|
cmd/pidfd-kill
command
pidfd-kill is a command-line tool to send signals to processes using pidfds passed through a unix socket.
|
pidfd-kill is a command-line tool to send signals to processes using pidfds passed through a unix socket. |
|
cmd/recvtty
command
recvtty is a sample implementation of the consumer side of the --console-socket interface for runc.
|
recvtty is a sample implementation of the consumer side of the --console-socket interface for runc. |
|
cmd/remap-rootfs
command
remap-rootfs is a command-line tool to remap the ownership of an OCI bundle's rootfs to match the user namespace id-mapping of the bundle's config.json.
|
remap-rootfs is a command-line tool to remap the ownership of an OCI bundle's rootfs to match the user namespace id-mapping of the bundle's config.json. |
|
cmd/sd-helper
command
sd-helper is a command-line tool to provide some very minimal helpers to communicate with systemd.
|
sd-helper is a command-line tool to provide some very minimal helpers to communicate with systemd. |
|
cmd/seccompagent
command
|
|
|
Package types defines the types used for the cgroup-related events APIs provided by "runc events".
|
Package types defines the types used for the cgroup-related events APIs provided by "runc events". |
|
features
Package features provides the annotations for github.com/opencontainers/runtime-spec/specs-go/features.
|
Package features provides the annotations for github.com/opencontainers/runtime-spec/specs-go/features. |
Click to show internal directories.
Click to hide internal directories.