exec /bin/bash: exec format error

Hi - I'm trying to deploy a docker container service on railway. Railway uses my dockerfile to build successfully. During the deployment state I get the following error, which I have not seen before when running this locally. I normally deploy the container locally using docker compose up --build, but railway doesn't support docker compose, so I can't go that approach. Any ideas or help appreciated!
Solution:
hello - i figured out the solution to my issue. it was caused by my docker image. it was originally built to run on mac architecture. i needed to rebuild the image for arm64. after i rebuilt the image it worked. for reference. https://stackoverflow.com/questions/73285601/docker-exec-usr-bin-sh-exec-format-error
Stack Overflow
Docker : exec /usr/bin/sh: exec format error
I created a custom docker image and push it to docker hub but when I run it in CI/CD it gives me this error. exec /usr/bin/sh: exec format error Where : Dockerfile FROM ubuntu:20.04 RUN apt-get upd...
Jump to solution
5 Replies
Percy
Percy12mo ago
Project ID: N/A
Brody
Brody12mo ago
please share your dockerfile
young90803
young9080312mo ago
FROM public.ecr.aws/whylabs-dev/whylabs-container:latest COPY ./whylogs_config/ /opt/whylogs-container/whylogs_container/whylabs/whylogs_config/
Brody
Brody12mo ago
where can i find the Dockerfile for public.ecr.aws/whylabs-dev/whylabs-container?
Solution
young90803
young9080312mo ago
hello - i figured out the solution to my issue. it was caused by my docker image. it was originally built to run on mac architecture. i needed to rebuild the image for arm64. after i rebuilt the image it worked. for reference. https://stackoverflow.com/questions/73285601/docker-exec-usr-bin-sh-exec-format-error
Stack Overflow
Docker : exec /usr/bin/sh: exec format error
I created a custom docker image and push it to docker hub but when I run it in CI/CD it gives me this error. exec /usr/bin/sh: exec format error Where : Dockerfile FROM ubuntu:20.04 RUN apt-get upd...
Want results from more Discord servers?
Add your server