Skip to content

Conversation

@vvoland
Copy link
Contributor

@vvoland vvoland commented Sep 2, 2025

When building a non-native platform, it's not unpacked by default.
History tries to read the disk usage of all the layer and it doesn't handle missing snapshots gracefully.
This patch fixes this.

containerd image store: Fix `docker history` failing with `snapshot X does not exist` when calling on a non-native image that was built locally

BuildKit emits some additional events during build and they are not
`build.Result` so don't fail if we encounter one.

Signed-off-by: Paweł Gronowski <[email protected]>
(cherry picked from commit ad830a4)
Signed-off-by: Paweł Gronowski <[email protected]>
@vvoland vvoland added this to the 28.4.0 milestone Sep 2, 2025
@vvoland vvoland self-assigned this Sep 2, 2025
@vvoland vvoland added status/2-code-review impact/changelog area/images Image Distribution kind/bugfix PR's that fix bugs area/builder/buildkit Build containerd-integration Issues and PRs related to containerd integration labels Sep 2, 2025
When building a non-native platform, it's not unpacked by default.
History tries to read the disk usage of all the layer and it doesn't
handle missing snapshots gracefully.

This patch fixes this.

Signed-off-by: Paweł Gronowski <[email protected]>
(cherry picked from commit 27fca93)
Signed-off-by: Paweł Gronowski <[email protected]>
Signed-off-by: Paweł Gronowski <[email protected]>
(cherry picked from commit ce338de)
Signed-off-by: Paweł Gronowski <[email protected]>
Make it possible to build non-native images like the other
test-integration workflows

Signed-off-by: Paweł Gronowski <[email protected]>
(cherry picked from commit 8031b07)
Signed-off-by: Paweł Gronowski <[email protected]>
@austinvazquez austinvazquez merged commit 4a34e8e into moby:28.x Sep 2, 2025
170 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/builder/buildkit Build area/images Image Distribution containerd-integration Issues and PRs related to containerd integration impact/changelog kind/bugfix PR's that fix bugs status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants