Open kriswuollett opened 1 year ago
Looks like a compose issue and you might need to specifiy the env variable to work for you. DOCKER_DEFAULT_PLATFORM=linux/arm64
Looks like a compose issue and you might need to specifiy the env variable to work for you. DOCKER_DEFAULT_PLATFORM=linux/arm64
Thanks for pointing out DOCKER_DEFAULT_PLATFORM
environment variable. That's a reasonable thing to put in the docs if that more or less how the CI is intended to be run (implied x86_64
only due to runner availability:
I never had to learn about DOCKER_DEFAULT_PLATFORM
environment variable earlier since I sometimes mix arm and x86 services in the same compose file so always went with platform
setting to begin with. But if the intention was to let a developer get running tests right away against their deployment platform, arm
more and more likely these days, then the compose up
command should work out of the box, and hide the compatibility complexity by potentially using overlays in CI.
Updated title to avoid suggesting a specific solution
Its still sounds like a docker problem for pulling the wrong architecture. Does a unit test of docker pull mariadb:10.3 result in an amd64 image? what about 10.11 (both should support arm but maybe manifest info has been updated)? Is it a recent docker version? Check https://github.com/docker/for-mac/issues.
An alternate is https://podman.io/docs/installation#macos
Is your feature request related to a problem? Please describe.
Cannot run Docker tests on macoOS / Apple M2. I get errors like:
Describe the solution you'd like
The
tests/docker-compose.yml
should also be accompanied by overlays so that theplatform
can be specifically set, e.g.,linux/arm64
since not everything is available onlinux/arm64/v8
.Describe alternatives you've considered
None
Additional context
None