docker-compose up failing on mac M1

555 views Asked by At

i have a working docker-compose.yaml file working perfectly using podman-compose on my fedora 35 box.

however, when i try to build the environment using docker-compose on my mac equipped with m1 chip it fails. to be more specific, it fails on this Dockerfile.

the complete docker-compose file can be seen here.

again, it works on linux perfectly.

any guidance is welcome.

1

There are 1 answers

0
Sombriks On

For anyone facing similar issue, it's not an issue with docker on M1 or with docker compose. The base image (docker.io/adoptopenjdk/openjdk11:alpine) must provide an arm version, which is not the case for this one.

Newer java versions offer arm64 support.