rocketmq-docker
rocketmq-docker copied to clipboard
ERROR: failed to solve: eclipse-temurin:8-jdk-alpine: no match for platform in manifest
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
So did I
any idea? I also have the same issue on m1
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
The alpine-based image 'eclipse-temurin:8-jdk-alpine' is not supported on aarch64, where Apple M1/M2 chips run:
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.
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
also, but how to solve it?
The alpine-based image 'eclipse-temurin:8-jdk-alpine' is not supported on aarch64, where Apple M1/M2 chips run:
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?