-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 build node-image
: Support Docker v25.0.1
#3487
kind build node-image
: Support Docker v25.0.1
#3487
Conversation
@aojea @BenTheElder Can we have a new release after merging this? 🙏 |
/assign @aojea |
c8ffa19
to
11a4351
Compare
kind build node-image
: Support Docker v25
11a4351
to
867cbde
Compare
kind build node-image
: Support Docker v25kind build node-image
: Support Docker v25.0.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should consider just avoiding the archive edit entirely.
When we wrote this, ctr images tag
didn't exist.
Alternately: Don't use Docker v25 yet, which we're definitely not doing elsewhere given the broken release. |
Kubernetes @ HEAD typically requires KIND @ HEAD, so any test pipelines shouldn't be blocked on this part. We need a release anyhow, just clarifying that part. |
`docker save` in Docker v25 produces Docker/OCI dual-format archives: - `repositories`, `manifest.json`: for legacy Docker format - `oci-layout`, `index.json` (and blobs): for OCI format However, `pkg/build/nodeimage/internal/container/docker.EditArchive` did not support rewriting OCI Index. This was resulting in producing broken images with Docker v25. We can just drop `docker.EditArchive` and use `ctr images tag` instead. See kubernetes/kubernetes issue 122894 NOTE: This is still incompatible with Docker v25.0.0 due to moby/moby issue 47150. The issue was fixed in v25.0.1. Signed-off-by: Akihiro Suda <[email protected]>
867cbde
to
10c59fd
Compare
Updated to use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
thank you!!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: AkihiroSuda, BenTheElder, dims The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
docker save
in Docker v25 produces Docker/OCI dual-format archives:repositories
,manifest.json
: for legacy Docker formatoci-layout
,index.json
(and blobs): for OCI formatHowever,
pkg/build/nodeimage/internal/container/docker.EditArchive
did not support rewriting OCI Index.This was resulting in producing broken images with Docker v25:
docker save
in Docker v25.0.0, affects rootful kind too) kubernetes/kubernetes#122894 (comment)We can just drop
docker.EditArchive
and usectr images tag
instead.NOTE: This is still incompatible with Docker v25.0.0 due to moby/moby#47150. The issue was fixed in v25.0.1.