Podman Build Pull on MacOS M‐series chips - zhuje/openshift-wiki GitHub Wiki
Overview
"Most of our images are amd64. I suppose the logging team uses x86, but we mostly use linux/amd64 (platform/architecture).
Podman can handle amd64 images, but when it pulls from the repo it tries to pull the architecture of the podman machine, which on M-series macs is arm64. arm64 isn't found, so it then isn't able to pull (edited) The podman build will also default to the podman machine's architecture, so when you run podman build without specifying --platform=linux/amd64 it will build darwin/arm64.
That fine if you are about to run the image on your machine, but none of the clusters that we run will use darwin/arm64 so you get a format exe error or something similar to that when you try to run the image in a cluster, since the image is the wrong architecture"
Peter - (https://redhat-internal.slack.com/archives/D06HXJALYTA/p1724342668605939)
Additional Resources
- Peter's ARM mac Notes: https://docs.google.com/document/d/1KAibZZ4M4OtJ9Wgb-PJWcdmXLGiRzpVUxEss7dYZlxE/edit
- Docker Page about Multi-platform images: https://docs.docker.com/build/building/multi-platform/
JZ Notes
- M-series Mac = arm64
- OpenShift + cluster = amd64