# Get all Images running in cluster

### List all Container images in all namespaces <a href="#list-all-container-images-in-all-namespaces" id="list-all-container-images-in-all-namespaces"></a>

if you'd like to get a list of the images running in a given cluster...

```
kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec.containers[*].image}"
```

The jsonpath is interpreted as follows:

* `.items[*]`: for each returned value
* `.spec`: get the spec
* `.containers[*]`: for each container
* `.image`: get the image

Reference: <https://kubernetes.io/docs/tasks/access-application-cluster/list-all-running-container-images/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ploegert.gitbook.io/til/tools/kubernetes-1/get-all-images-running-in-cluster.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
