ctr
Containerd command-line client
TLDR
SYNOPSIS
ctr [global options] command [arguments]
DESCRIPTION
ctr is the command-line client for containerd, the industry-standard container runtime. It provides low-level container and image management capabilities.Unlike Docker CLI, ctr is designed for debugging and direct containerd interaction rather than general use. Kubernetes typically uses containerd through crictl instead.
PARAMETERS
-n, --namespace namespace
Namespace to use. Default: default. Kubernetes uses k8s.io.--address address
Address for containerd's GRPC server.--connect-timeout duration
Timeout for connecting to containerd.--debug
Enable debug output in logs.
SUBCOMMANDS
containers list
List all containerscontainers rm id
Remove a containerimages list
List all imagesimages pull ref
Pull an imageimages push ref
Push an imageimages tag source target
Tag an imagerun image containerid_
Run a containertasks list
List running taskstasks kill containerid_
Kill a running tasksnapshots list
List snapshotsnamespaces list
List namespacescontent fetch ref
Fetch content from remote
CAVEATS
Low-level tool primarily for debugging. For Kubernetes environments, use crictl. For general Docker-like experience, use nerdctl. Requires root or containerd socket access.
HISTORY
ctr is part of containerd, which was originally developed by Docker Inc. and donated to the Cloud Native Computing Foundation (CNCF) in 2017. containerd became a graduated CNCF project and is now the standard container runtime for Kubernetes and many other platforms.
SEE ALSO
containerd(8), crictl(1), nerdctl(1)
