Skip to content

Commit

Permalink
list all the used container images
Browse files Browse the repository at this point in the history
  • Loading branch information
rgl committed Mar 17, 2024
1 parent e75f136 commit bca48d4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,16 @@ echo "kubernetes-hello ingress host: $kubernetes_hello_host"
xdg-open https://www.ssllabs.com/ssltest/
```

List all the used container images:

```bash
# see https://kubernetes.io/docs/tasks/access-application-cluster/list-all-running-container-images/
kubectl get pods --all-namespaces \
-o jsonpath="{.items[*].spec['initContainers','containers'][*].image}" \
| tr -s '[[:space:]]' '\n' \
| sort --unique
```

Log in the container registry:

**NB** You are logging in at the registry level. You are not logging in at the
Expand Down

0 comments on commit bca48d4

Please sign in to comment.