Inspect container CRI data

Show runtime info, cgroup path, mounts and pid of a container. kubectl cannot show these

crictl inspect <id> | jq '.info'

tool
crictl3 commands
tags
crictlk8sdebugtroubleshooting

More crictl commands

  • crictl rmp -f $(crictl pods -q --state NotReady)

    Remove orphaned NotReady pod sandboxes that the kubelet did not clean up. A fix on the node level

  • crictl rmi --prune

    Free disk space by deleting images that no container uses. A safe fix for disk pressure on a node

all 3 crictl commands