Reputation: 4970
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
Upvotes: 32
Views: 19688
Reputation: 21
Use below command and it will show all images loaded on the kind node
kubectl get nodes kind-control-plane -o yaml
Upvotes: 2
Reputation: 111
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
Upvotes: 11
Reputation: 44657
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.
Upvotes: 54