Runner #
Runner.Policy describes the options a caller allows when running an OCI
container. The default permits namespace and VM runtimes, restricts added
capabilities to Runc's hardened set, and grants no additional devices. It
resolves Moby's seccomp profile for the target kernel, architecture and
process capabilities.
Runner.Spec combines a parsed Docker command with an image configuration and
checks the caller's policy before producing the OCI runtime configuration.
Namespace runs map either container root or the caller's own IDs. The default
network uses the caller's network, and --network none makes a separate
namespace. CPU, memory, and PID quotas are refused because the run has no
delegated cgroup. An allowed device is passed by bind mount, which provides
full access subject to the host's permissions and limits.
Related work #
Runc models the OCI runtime
specification and supplies the capability defaults and seccomp profile.
Docker parses Docker command
lines. crun and
runc run OCI bundles. Runner's policy
covers the choices the caller allows before an OCI bundle is constructed.