Skip to content

Take two: Make local/docker implementation platform-aware#305

Draft
bojidar-bg wants to merge 1 commit intobuildpacks:mainfrom
bojidar-bg:l1599-local-platform
Draft

Take two: Make local/docker implementation platform-aware#305
bojidar-bg wants to merge 1 commit intobuildpacks:mainfrom
bojidar-bg:l1599-local-platform

Conversation

@bojidar-bg
Copy link
Contributor

(WIP) Second attempt at #302 after buildpacks/lifecycle#1605.

Will have to test it more substantially this time around, but poking around the failed to export: saving image: failed to fetch base layers: error, I discovered that:

  1. The ID returned by docker image inspect --platform ... is completely useless for use with other commands. Hence, we run both a platform-specific inspect for the layer info and a platform-agnostic inspect for the image ID.
  2. ensureLayers calls ImageSave which also has a --platform argument. Unsure what ensureLayers is needed for exactly, but it fetches the right layers with the platform set; I still need to test the lifecycle with that change added/removed to see what breaks.
  3. TODO: ImageHistory, ImageLoad, and ImageRemove also have platform arguments. Investigate if they are needed.

Signed-off-by: Bozhidar Marinov <bozhidar.marinov1@mail.schwarz>
@bojidar-bg bojidar-bg changed the title Take two: Pass make local/docker implementation platform-aware Take two: Make local/docker implementation platform-aware Feb 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments