Skip to content

Commit 8f61745

Browse files
jhrozekclaude
andauthored
Fix kind load failures with Docker 29+ containerd image store (#3815)
Work around kind load failure with Docker 29+ containerd image store Docker 29+ defaults to the containerd image store, which causes `kind load docker-image` to fail for multi-arch images. With the containerd snapshotter, `docker save` preserves the full OCI index (referencing all platforms) even when only the host-platform layers were pulled. kind then calls `ctr images import --all-platforms`, which fails because the non-host-platform layers are missing. Disable the containerd snapshotter before pulling any images so that Docker falls back to the classic overlay2 store, which only exports the single-platform manifest. Ref: kubernetes-sigs/kind#3795 Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1bf49e5 commit 8f61745

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/test-e2e-lifecycle.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,19 @@ jobs:
3636
- name: Checkout code
3737
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
3838

39+
- name: Disable containerd image store
40+
# Workaround for https://github.com/kubernetes-sigs/kind/issues/3795
41+
# Docker 29+ defaults to containerd image store, which causes
42+
# `kind load docker-image` to fail for multi-arch images because
43+
# `docker save` preserves the OCI index referencing all platforms
44+
# even when only the host platform layers were pulled.
45+
# --platform on docker pull is not sufficient; the image store
46+
# itself must be switched back to the classic overlay2 driver.
47+
run: |
48+
sudo mkdir -p /etc/docker
49+
echo '{"features":{"containerd-snapshotter": false}}' | sudo tee /etc/docker/daemon.json
50+
sudo systemctl restart docker
51+
3952
- name: Set up Helm
4053
uses: azure/setup-helm@1a275c3b69536ee54be43f2070a358922e12c8d4 # v4.3.1
4154

0 commit comments

Comments
 (0)