Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kind load docker-image fails with error error=\"wrong diff id calculated on extraction on docker version 25 #3490

Closed
ghost opened this issue Jan 24, 2024 · 4 comments
Labels
area/provider/docker Issues or PRs related to docker kind/external upstream bugs triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@ghost
Copy link

ghost commented Jan 24, 2024

Kind load docker-image command fails with the following docker error on Docker version 25

error="wrong diff id calculated on extraction

Full error below

kind load docker-image docker.io/library/keycloak_dev:d3b0f69b87c0b7f57b3487e6629d12e58528ed95a79f7b29d015b7174bebfd93
Image: "docker.io/library/keycloak_dev:d3b0f69b87c0b7f57b3487e6629d12e58528ed95a79f7b29d015b7174bebfd93" with ID "sha256:d3b0f69b87c0b7f57b3487e6629d12e58528ed95a79f7b29d015b7174bebfd93" not yet present on node "kind-control-plane", loading...
ERROR: failed to load image: command "docker exec --privileged -i kind-control-plane ctr --namespace=k8s.io images import --all-platforms --digests --snapshotter=overlayfs -" failed with error: exit status 1
Command Output: unpacking docker.io/library/keycloak_dev:d3b0f69b87c0b7f57b3487e6629d12e58528ed95a79f7b29d015b7174bebfd93 (sha256:a9c1284362d7d64c807a9875232f576025ee3f52d8922050fec8d18e4d1c89ab)...time="2024-01-24T15:26:17Z" level=info msg="apply failure, attempting cleanup" error="wrong diff id calculated on extraction "sha256:4ac1c61fddeb3e910c192f1f7dd0b8d8e4146d80ead804b3f259b61100830d09"" key="extract-419216328-UV1f sha256:80a3f0b229f61dfcdaee710c74201f383ef99e1dde651fc5c2a53b3aefc9b095"
ctr: wrong diff id calculated on extraction "sha256:4ac1c61fddeb3e910c192f1f7dd0b8d8e4146d80ead804b3f259b61100830d09"

This does not occur when loading docker images from tar archive on version 25 though.

I was building my images using skaffold build/run commands - skaffold version v2.10.0

@ghost ghost added the kind/bug Categorizes issue or PR as related to a bug. label Jan 24, 2024
@stmcginnis
Copy link
Contributor

I believe this is an issue with Docker 25. You will need to downgrade for now, otherwise wait for the bugfix release to come out.

#3488 (comment)

@BenTheElder
Copy link
Member

ref: moby/moby#47161

@BenTheElder
Copy link
Member

There are other issues with kind and v25 (#3487), but the error in this issue is just a bug in docker. v25.0.1 contains a fix.

@BenTheElder BenTheElder added kind/external upstream bugs area/provider/docker Issues or PRs related to docker and removed kind/bug Categorizes issue or PR as related to a bug. labels Jan 24, 2024
@BenTheElder
Copy link
Member

/triage duplicate
pinned #3488 for visibility

@k8s-ci-robot k8s-ci-robot added the triage/duplicate Indicates an issue is a duplicate of other open issue. label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/provider/docker Issues or PRs related to docker kind/external upstream bugs triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

3 participants