You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using build --platform linux/amd64 --push vs build --platform linux/amd64 & push --platform linux/amd64 yield different results when build from arm64 based system. It seems like the --push flag that triggers the push does not respect the --platform flag from build.
When you pass the --platform parameter to docker push, it will only push a single-platform manifest instead of a full OCI index (like docker build ... --push.
To get the same result, you should just use docker push <image>.
As my post states, I was aware of this workaround and I would certainly classify it as a workaround. Maybe it's just me but this behavior violates the principal of least surprise. I've specified a platform to build, and I would expect all actions docker takes from that point forward while executing to respect the platform parameter.
Description
Using build --platform linux/amd64 --push vs build --platform linux/amd64 & push --platform linux/amd64 yield different results when build from arm64 based system. It seems like the --push flag that triggers the push does not respect the --platform flag from build.
Reproduce
vs
Expected behavior
I would expect both sets of commands to behave in the exact same way.
docker version
docker info
Additional Info
No response
The text was updated successfully, but these errors were encountered: