buildkit icon indicating copy to clipboard operation
buildkit copied to clipboard

variant ignored for linux/arm64

Open rittneje opened this issue 2 years ago • 3 comments

I built an image using buildctl with --opt platform=linux/arm/v7,linux/arm64/v8.

For linux/arm/v7, the variant is properly shown in the logs ("[linux/arm/v7]") and in the metadata file ("containerimage.buildinfo/linux/arm/v7"). It also shows up in the multi-arch manifest list (platform.variant).

However, for linux/arm64/v8, the variant appears to be completely ignored. The logs just show "[linux/arm64]" and the metadata file just has "containerimage.buildinfo/linux/arm64". It does not show up in the mulit-arch manifest list (platform.variant is not present).

I am using buildkit v0.11.6.

rittneje avatar Jul 30 '23 19:07 rittneje

https://github.com/moby/buildkit/issues/4039#issuecomment-1641880638

crazy-max avatar Jul 31 '23 07:07 crazy-max

@crazy-max All the images on Docker Hub show "linux/arm64/v8" not "linux/arm64". It's pretty confusing that buildkit behaves differently. It's also confusing that buildkit rewrites what I tell it instead of just failing.

rittneje avatar Jul 31 '23 10:07 rittneje

Any news?

andrey-bondar avatar Mar 04 '24 12:03 andrey-bondar