Open ReDemoNBR opened 1 year ago
@flouthoc PTAL
@ReDemoNBR Ah this happens because buildah
never re-adds same image again since image
is built from scratch
and cache is used, if you use --no-cache
with the command it should work.
Anyways this must be fixed as buildah end. I'll take a look.
@flouthoc Thanks, this makes sense.
I just retried my initial steps without --no-cache
and sometimes buildah
does fail and sometimes it works, differently than my initial report says. It is plain inconsistent.
Sometimes re-running the build without destroying the previous build, it even ends up with some weird stuff like linux/amd/v8
lol when the second attempt adds the linux/amd
but the previously built was linux/arm64/v8
.
--no-cache
indeed fixes the outputs, but this does have some effect on intermediary build stages that are shared. But surely fixed the issue.
As this is a problem upstream, should I reopen and link this issue on buildah
repository?
I think issue is we can't add same digest twice in the manifest list.
A friendly reminder that this issue had no activity for 30 days.
@flouthoc Any update on this?
Issue Description
When building multiarch images from
scratch
, the manifest list generated only shows 1 of the images. The error is not reproduced when using an image likealpine:latest
Note that podman
v4.5.1
used here includesbuildah=1.30.0
. Using buildah in the very same version1.30.0
does not reproduce the issue.Using on ArchLinux amd64
Steps to reproduce the issue
Steps to reproduce the issue
podman build --platform linux/amd64,linux/arm64/v8 --manifest foo:bar .
podman manifest inspect foo:bar
Describe the results you received
Using scratch as base image
The manifest list is missing the linux/arm64/v8 image
Describe the results you expected
Using alpine as base image
If the base image is changed, for example to
alpine:latest
like so:It generates the manifest correctly
The manifest list is not missing any of the images
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting