fix(docker): thread platform through Docker daemon inspect and save APIs#524
Merged
willmurphyscode merged 1 commit intomainfrom Feb 19, 2026
Merged
fix(docker): thread platform through Docker daemon inspect and save APIs#524willmurphyscode merged 1 commit intomainfrom
willmurphyscode merged 1 commit intomainfrom
Conversation
Docker 29 changed image storage so tags point to manifest lists instead of platform-specific images. This broke platform selection via the Docker daemon: inspect returned empty OS/architecture for foreign platforms, and save failed entirely on manifest lists. Pass the requested platform to ImageInspect (API v1.49+) and ImageSave (API v1.48+) so both calls resolve the manifest list correctly. Each call falls back to the plain API when talking to older daemons, keeping backward compatibility with Docker 27/28. Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
Benchmark Test ResultsBenchmark results from the latest changes vs base branch |
kzantow
reviewed
Feb 19, 2026
kzantow
approved these changes
Feb 19, 2026
Contributor
kzantow
left a comment
There was a problem hiding this comment.
LGTM -- honoring explicit platform requests seems like the right thing to do here 👍
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Docker 29 changed image storage so tags point to manifest lists instead of platform-specific images. This broke platform selection via the Docker daemon: inspect returned empty OS/architecture for foreign platforms, and save failed entirely on manifest lists.
Pass the requested platform to ImageInspect (API v1.49+) and ImageSave (API v1.48+) so both calls resolve the manifest list correctly. Each call falls back to the plain API when talking to older daemons, keeping backward compatibility with Docker 27/28.
Before this change:
After this change:
I think we're basically adding a compensation for moby/moby#51532 here.