LinuxCommandLibrary

runc

TLDR

Run container

$ runc run [container-id]
copy
Create container
$ runc create [container-id]
copy
Start container
$ runc start [container-id]
copy
List containers
$ runc list
copy
Kill container
$ runc kill [container-id]
copy
Delete container
$ runc delete [container-id]
copy
Execute in container
$ runc exec [container-id] [command]
copy

SYNOPSIS

runc [options] command [args...]

DESCRIPTION

runc is a CLI tool for spawning and running containers according to the OCI specification. It's the reference implementation of the Open Container Initiative runtime specification.
The tool provides low-level container runtime functionality, used by Docker, containerd, and other container platforms.

PARAMETERS

run id

Create and start container.
create id
Create container.
start id
Start created container.
list
List containers.
state id
Output container state.
kill id [signal]
Send signal to container.
delete id
Delete container.
exec id cmd
Execute command in container.
spec
Generate spec file.
--root dir
Root directory for storage.

CAVEATS

Requires OCI bundle. Low-level tool - usually not used directly. Needs root for full functionality. Container must be configured properly.

HISTORY

runc was developed as part of the Open Container Initiative (OCI) by Docker and others in 2015. It standardized container runtime behavior, enabling interoperability between container platforms.

SEE ALSO

docker(1), containerd(8), podman(1), crun(1)

Copied to clipboard