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
I can build a container selecting the platform (with experimental features enabled) with the command: docker build --platform arm64 --pull -t <tag> .
This will run a cross compile build on the selected platform and I can build such Dockerfile for amd64, arm and arm64
When using docker-compose however, looks like the platform arg is not passed to the build, so it keeps using the underlying OS arch.
Running docker-compose with --no-cache or --pull does not help.
Note: all upstream packages have multi-arch enabled
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description of the issue
I can build a container selecting the platform (with experimental features enabled) with the command:
docker build --platform arm64 --pull -t <tag> .
This will run a cross compile build on the selected platform and I can build such Dockerfile for amd64, arm and arm64
When using docker-compose however, looks like the
platform
arg is not passed to the build, so it keeps using the underlying OS arch.Running docker-compose with
--no-cache
or--pull
does not help.Note: all upstream packages have multi-arch enabled
Context information (for bug reports)
Output of
docker-compose version
Output of
docker version
Output of
docker-compose config
(Make sure to add the relevant
-f
and other flags)Steps to reproduce the issue
Observed result
Builds with amd64 platform
Expected result
Builds with arm64 platform
Additional information
Linux spectre 5.6.10-3-MANJARO #1 SMP PREEMPT Sun May 3 11:03:28 UTC 2020 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: