Skip to content

kind load docker-image: ctr content digest … not found

AItested on kind v0.33.0, Docker 29

Large AI images are best preloaded onto the kind nodes. With multi-arch images such as llama.cpp, kind load docker-image fails on Docker 29: the layers of the other platforms are missing from the archive.

Symptom

ERROR: failed to load image: command "docker exec --privileged -i ki-lab-control-plane
ctr --namespace=k8s.io images import --all-platforms ..." failed with error: exit
status 1
Command Output: ctr: content digest sha256:2c213d6c...: not found

In the course this happens while preloading the llama.cpp server into the kind cluster ki-lab.

Diagnosis

The import on the node runs with --all-platforms – ctr looks for layers that were never downloaded locally.

ctr --namespace=k8s.io images import --all-platforms ..." failed with error: exit

Causes

containerd image storeDocker 29 only has your platform's layers

With Docker 29's containerd image store only the layers of your own architecture are stored locally. The multi-arch image's index references all of them.

--all-platformskind imports every platform

kind load docker-image runs ctr images import --all-platforms on the node and fails on the first missing layer.

Fix

Write only the matching platform into an archive and load the archive.
docker pull --platform $PLATFORM $IMG
docker save --platform $PLATFORM $IMG -o /tmp/llamacpp.tar
kind load image-archive /tmp/llamacpp.tar --name ki-lab
rm /tmp/llamacpp.tar

Don't: Work with :latest – imagePullPolicy is then Always and every pod start pulls the image again despite preloading.

▶
Break it yourself and find it – free
LLMs on Kubernetes hands-on, Day 1: kind for AI – ingress, storage for models, preloading images, quotas.
Go to day 1 →

FAQ

How do I see that the image is on both nodes?

With crictl images inside the node container – in the course it shows one llama.cpp match each on control-plane and worker.

Does the pod use the preloaded image?

Yes, with a fixed tag imagePullPolicy is IfNotPresent and the existing image is used.

Related error patterns

More