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
| Flag | Description |
|---|---|
-n, --namespace | Namespace to scan (default: current context namespace) |
-A, --all-namespaces | Scan every namespace |
-l, --selector | Only scan pods matching a label selector |
--latest | Only show images with a mutable tag |
Examples
kubectl images
kubectl images -A
kubectl images -A --latest