kind cluster - how to see docker-images that are loaded?

Viewed 6643

To test my images I normally load them into my kind cluster by running on my macOS laptop something like ...

kind load docker-image foo/bar-1.0.0:latest

How do I see what images have already been loaded ?

kind = https://github.com/kubernetes-sigs/kind

2 Answers

Get name of a node by running kubectl get nodes.

Get into the node by running docker exec -ti <nodename> bash

After getting into the node you can just run crictl images to see images loaded on that node.

For first cluster in the list, write this command:

docker exec -it $(kind get clusters | head -1)-control-plane crictl images

For specific cluster, write this command:

docker exec -it ${CLUSTER_NAME}-control-plane crictl images
Related