← Pods507 / 640
hardkubectl

Extract the container image names for all pods in the current namespace

command

kubectl get pods -o jsonpath='{.items[*].spec.containers[*].image}'

also accepted

kubectl get pods -o jsonpath

Command breakdown

Part of the Kubernetes CLI (kubectl) — Pods category.

kubectlgetpods-ojsonpath='{.items[*].spec.containers[*].image}'
FlagPurpose
-oBoolean flag

Test your recall — not just your reading.

Practice with interactive quiz →