M1 Macbook Pro Docker Issue Gradle and JDK

  apple-m1, docker, gradle, java, macos

Docker is giving this error no idea what to do with it on M1 mac, how do I utilize virtualization in this case? Other docker images have been built successfully except for gradle.

Building platform
[+] Building 1.9s (5/5) FINISHED                                                                                                                                            
 => [internal] load build definition from Dockerfile                                                                                                                   0.4s
 => => transferring dockerfile: 37B                                                                                                                                    0.0s
 => [internal] load .dockerignore                                                                                                                                      0.5s
 => => transferring context: 2B                                                                                                                                        0.0s
 => CANCELED [internal] load metadata for docker.io/library/java:8                                                                                                     1.2s
 => ERROR [internal] load metadata for docker.io/library/gradle:4.7.0-jdk8-alpine                                                                                      1.2s
 => [auth] library/gradle:pull token for registry-1.docker.io                                                                                                          0.0s
------
 > [internal] load metadata for docker.io/library/gradle:4.7.0-jdk8-alpine:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: no match for platform in manifest sha256:588dcfb0c01babf0ed3989462f13600567e8c5325ea746122dea10717d0a7676: not found
ERROR: Service 'platform' failed to build

Source: Docker Questions

LEAVE A COMMENT