$linuxjunkies
>

containerd(8)

containerd is a daemon that manages container lifecycle and image operations on Linux systems.

UbuntuDebianFedoraArch

Synopsis

containerd [OPTIONS] COMMAND

Description

containerd is an industry-standard container runtime that manages the complete container lifecycle including image transfer, storage, container execution, and supervision. It runs as a daemon and provides a gRPC API for container orchestration platforms like Kubernetes and Docker.

The daemon handles low-level container operations, image management, and networking configuration. It uses runc or other OCI-compliant runtimes as execution engines but abstracts away the complexity through its unified API.

Common options

FlagWhat it does
-a, --addressaddress for the GRPC socket (default: /run/containerd/containerd.sock)
-c, --configpath to the configuration file (default: /etc/containerd/config.toml)
--log-levelset the logging level (debug, info, warn, error)
--rootroot directory for container state (default: /var/lib/containerd)
--statedirectory for runtime state (default: /run/containerd)
-v, --versionprint the version and exit
-h, --helpshow help information

Examples

start the containerd daemon with default configuration

containerd

start containerd using a specific configuration file

containerd -c /etc/containerd/config.toml

start containerd with debug-level logging

containerd --log-level=debug

list all container images (using ctr client against running containerd)

ctr images ls

create a container from an Alpine image

ctr containers create docker.io/library/alpine:latest mycontainer

start containerd as a systemd service

systemctl start containerd

Related commands