-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman build adds "variant" to all images when building multiarch images on MacOS (Apple Silicon) #22730
Comments
@nalind PTAL |
I see the similar issue. When fetching the image on amd64 we get an error about the missing variant.
|
I'm not able to reproduce this with podman-5.0.3-1.fc40 running in local or remote mode on an aarch64 Linux box, or with the podman 5.0.3 bundled with podman desktop v1.10.3 on top of MacOS 14.4.1 building this example Dockerfile: FROM busybox
RUN pwd | tee pwd.txt More information about the environment where it's happening (the |
I was able to reproduce this with your dockerfile. Did you do a just a
|
I used |
I rechecked my skopeo output and I also could not reproduce with your Dockerfile, sorry for the error. I created a new Dockerfile where I can reproduce the problem: ➜ podman ls
Dockerfile go.mod main.go manager
➜ podman cat Dockerfile
FROM --platform=${BUILDPLATFORM} golang:1.22 as builder
ARG TARGETOS
ARG TARGETARCH
WORKDIR /workspace
# Copy the Go Modules manifests
COPY go.mod go.mod
# Copy the go source
COPY main.go main.go
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager main.go
FROM gcr.io/distroless/static:nonroot
WORKDIR /
COPY --from=builder /workspace/manager .
USER 65532:65532
ENTRYPOINT ["/manager"]
➜ podman cat main.go
package main
import "fmt"
func main() {
fmt.Println("hello world")
}
➜ podman cat go.mod
module example.com
go 1.22.3
➜ podman
|
Issue Description
Describe your issue
Running `docker build --platform='linux/arm64,linux/amd64' on MacOS ARM (MAC M series processor) to generate multi architecture images for linux/amd64 introduces a variant from the ARM architecture (v8) in the docker manifest for all target architectures, including intel which does not define variants.
Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
Describe the results you received
Describe the results you expected
Describe the results you expected
podman pull <image_name>
podman info output
If you are unable to run podman info for any reason, please provide the podman version, operating system and its version and the architecture you are running.
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
The text was updated successfully, but these errors were encountered: