kubectl-plugins

images

List container images in use and flag :latest or untagged ones.

kubectl images [-n NAMESPACE | -A] [-l SELECTOR] [--latest]

Groups every container image (init containers included) used by the selected pods. Each row shows the image, how many pods use it and which namespaces. The most widely used images come first.

Images tagged :latest or with no tag are marked mutable tag, since they can change underneath you. Images pinned by digest (@sha256:...) are not flagged.

Flags

FlagDescription
-n, --namespaceNamespace to scan (default: current context namespace)
-A, --all-namespacesScan every namespace
-l, --selectorOnly scan pods matching a label selector
--latestOnly show images with a mutable tag

Examples

kubectl images
kubectl images -A
kubectl images -A --latest