crictl

Command-line for CRI-compatible container runtimes.

TLDR

List all kubernetes pods (Ready and NotReady)

$ crictl pods
copy


List all containers (Running and Exited)
$ crictl ps --all
copy


List all images
$ crictl images
copy


Print information about specific containers
$ crictl inspect [container_id1 container_id2 ...]
copy


Open a specific shell inside a running container
$ crictl exec -it [container_id] [sh]
copy


Pull a specific image from a registry
$ crictl pull [image:tag]
copy


Print and [f]ollow logs of a specific container
$ crictl logs -f [container_id]
copy


Remove one or more images
$ crictl rmi [image_id1 image_id2 ...]
copy

Copied to clipboard