apple/container

[Request]: `Image save` command: platform default to current

Open

#712 aperta il 3 ott 2025

Vedi su GitHub
 (5 commenti) (0 reazioni) (0 assegnatari)Swift (752 fork)batch import
good first issue

Metriche repository

Star
 (26.498 star)
Metriche merge PR
 (Merge medio 3g 12h) (70 PR mergiate in 30 g)

Descrizione

Feature or enhancement request details

When saving an image pulled from remote sources, if the platform is nil, the save will failed with the notFound error:

For example, running

container image save alpine:latest --output /Users/itsuki/Desktop/untitled\ folder/image.tar

will give

Error: notFound: "Content with digest sha256:eafc1edb577d2e9b458664a15f23ea1c370214193226069eb22921169fc7e43f"

The digest here is not the digest for the image we are trying to save specifically, but the same for any (I think) remote images.

However, specifying the platform to be the current platform, in my case, --platform linux/arm64/v8, the save will success.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Guida contributor