Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR: failed to solve: eclipse-temurin:8-jdk-alpine: no match for platform in manifest #89

Open
MUCZ opened this issue Aug 21, 2023 · 7 comments

Comments

@MUCZ
Copy link

MUCZ commented Aug 21, 2023

platform: mac pro m2

sh build-image.sh 4.5.0 alpine
Version = 4.5.0
[+] Building 1.2s (3/3) FINISHED                                                                    docker:desktop-linux
 => [internal] load build definition from Dockerfile-alpine                                                         0.0s
 => => transferring dockerfile: 3.51kB                                                                              0.0s
 => [internal] load .dockerignore                                                                                   0.0s
 => => transferring context: 2B                                                                                     0.0s
 => ERROR [internal] load metadata for docker.io/library/eclipse-temurin:8-jdk-alpine                               1.2s
------
 > [internal] load metadata for docker.io/library/eclipse-temurin:8-jdk-alpine:
------
Dockerfile-alpine:44
--------------------
  42 |     # Make the actual RocketMQ docker image
  43 |     ################################################################################
  44 | >>> FROM eclipse-temurin:8-jdk-alpine
  45 |
  46 |     ARG user=rocketmq
--------------------
ERROR: failed to solve: eclipse-temurin:8-jdk-alpine: no match for platform in manifest sha256:8a8fbfd1e27b904cefa06d369773aadb6d8952bebeb4e9750f8b46b9e0e966a1: not found

@YuanHuaQiang
Copy link

So did I

@harrishee
Copy link

any idea? I also have the same issue on m1

@MaidSG
Copy link

MaidSG commented Dec 21, 2023

i had same problem when i build use alpine BaseImage i replace the content “ FROM eclipse-temurin:8-jdk-alpine AS builder ” to " FROM openjdk:8 AS builder " in Dockerfile-alpine and success

@caigy
Copy link
Contributor

caigy commented Dec 25, 2023

The alpine-based image 'eclipse-temurin:8-jdk-alpine' is not supported on aarch64, where Apple M1/M2 chips run:
image

The Adoptium Community is working on the aarch64 support for alpine, but it seems there's no stable image currently: adoptium/containers#158 (comment)

As a workaround, please run sh build-image.sh RMQ-VERSION centos. This is mostly the same as what @MaidSG has done.

@gelald
Copy link

gelald commented Feb 7, 2024

for RocketMQ image, we can use above⬆️ way to handle it. but for RocketMQ-dashborad image, we can see the Dockerfile:

FROM centos:7

RUN yum install -y java-1.8.0-openjdk-devel.x86_64 unzip openssl, which gnupg, wget \
 && yum clean all -y

centos:7 doesn't support arm64 arch, we can use this image centos:centos7. but the yum install command, it need to install openjdk, but it point to x86_64 haha

@Poison02
Copy link

Poison02 commented Mar 2, 2024

also, but how to solve it?

@KrishSinghal1
Copy link

The alpine-based image 'eclipse-temurin:8-jdk-alpine' is not supported on aarch64, where Apple M1/M2 chips run: image

The Adoptium Community is working on the aarch64 support for alpine, but it seems there's no stable image currently: adoptium/containers#158 (comment)

As a workaround, please run sh build-image.sh RMQ-VERSION centos. This is mostly the same as what @MaidSG has done.

Where do I need to run this command? The dockerfile does this on its own?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants