You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we are using the grepplabs/kafka-proxy image as base image for our own docker image. We were building on amd64 architecture before but want to switch to arm now which leads to errors now. We build our image in AWS CodePipeline and get the following error there:
#6 [2/4] RUN apk update && apk --no-cache add openssl coreutils
#6 0.594 exec /bin/sh: exec format error
#6 ERROR: process "/bin/sh -c apk update && apk --no-cache add openssl coreutils" did not complete successfully: exit code: 1
------
> [2/4] RUN apk update && apk --no-cache add openssl coreutils:
0.594 exec /bin/sh: exec format error
------
Dockerfile:11
--------------------
9 | ENV HTTP_PROXY=$arg_http_proxy
10 |
11 | >>> RUN apk update && apk --no-cache add openssl coreutils
12 |
13 | ADD ./start.sh ./
--------------------
ERROR: failed to solve: process "/bin/sh -c apk update && apk --no-cache add openssl coreutils" did not complete successfully: exit code: 1
Our Dockerfile looks like this:
FROM --platform=linux/arm64 grepplabs/kafka-proxy@sha256:b73d462d13d49f6281810f5ef481b6aac152193d9fc30913bc512c4977ad1a8b
USER root
ARG arg_https_proxy
ARG arg_http_proxy
ENV HTTPS_PROXY=$arg_https_proxy
ENV HTTP_PROXY=$arg_http_proxy
RUN apk update && apk --no-cache add openssl coreutils
ADD ./start.sh ./
RUN chmod +x ./start.sh
ENTRYPOINT ["/bin/sh", "start.sh"]
So even while we are specifically pull the kafka-proxy ARM image it seems that there are issues with the architecture if you search for this error message.
Locally on an Mac with ARM processor docker build is successful but we noticed that the apk installs from the amd64 repository:
Hi,
we are using the grepplabs/kafka-proxy image as base image for our own docker image. We were building on amd64 architecture before but want to switch to arm now which leads to errors now. We build our image in AWS CodePipeline and get the following error there:
Our Dockerfile looks like this:
So even while we are specifically pull the kafka-proxy ARM image it seems that there are issues with the architecture if you search for this error message.
Locally on an Mac with ARM processor
docker build
is successful but we noticed that theapk
installs from the amd64 repository:So we assume that the alpine base image that is used is somehow not from arm architecture.
Does anyone have an idea how to fix this?
The text was updated successfully, but these errors were encountered: