Options (3)
-a, --allbooleanList all containers (Running and Exited)
Example:
crictl ps {{[-a|--all]}}booleanOpen a specific shell inside a running container
Example:
crictl exec {{[-it|--interactive --tty]}} {{container_id}} {{sh}}-f, --followbooleanPrint and follow logs of a specific container
Example:
crictl logs {{[-f|--follow]}} {{container_id}}Examples (8)
List all Kubernetes pods (Ready and NotReady)
crictl podsList all images
crictl imagesPrint information about specific containers
crictl inspect container_id1 container_id2 ...Open a specific shell inside a running container
Pull a specific image from a registry
crictl pull image:tagPrint and follow logs of a specific container
crictl logs [-f|--follow] container_idRemove one or more images
crictl rmi image_id1 image_id2 ...made by @shridhargupta | data from tldr-pages