Prune images on a node

Reclaim disk by deleting images not referenced by any container; safe node disk-pressure fix

crictl rmi --prune

tool
crictl3 commands
tags
crictlk8sdisktroubleshooting

More crictl commands

  • crictl inspect <id> | jq '.info'

    Dump runtime info, cgroup path, mounts and pid for a CRI container kubectl can't show

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

    Clean up orphaned NotReady pod sandboxes the kubelet failed to GC; node-level recovery

all 3 crictl commands