rocketmq-docker icon indicating copy to clipboard operation
rocketmq-docker copied to clipboard

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

Open MUCZ opened this issue 1 year ago • 7 comments

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

MUCZ avatar Aug 21 '23 10:08 MUCZ

So did I

YuanHuaQiang avatar Nov 23 '23 02:11 YuanHuaQiang

any idea? I also have the same issue on m1

harrishee avatar Dec 17 '23 06:12 harrishee

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

MaidSG avatar Dec 21 '23 03:12 MaidSG

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: https://github.com/adoptium/containers/issues/158#issuecomment-1719689081

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

caigy avatar Dec 25 '23 01:12 caigy

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

gelald avatar Feb 07 '24 15:02 gelald

also, but how to solve it?

Poison02 avatar Mar 02 '24 03:03 Poison02

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?

KrishSinghal1 avatar May 06 '24 12:05 KrishSinghal1