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

fix: k8s error exec /docker-entrypoint.sh: exec format error #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alejo-jm
Copy link

hello, i change the shebang of the shell scripts and now the image run without errors on k8s aws
error exec /docker-entrypoint.sh: exec format error (mac m1 with FROM --platform=linux/amd64)

Regards

@dekobon
Copy link
Collaborator

dekobon commented May 10, 2023

Thank you for submitting this issue. Can you tell me more about the environment in which you are having a problem? How could I get access to it? The pattern I'm using to locate bash is a common pattern. With this proposed change, systems that have bash in a directory other than /bin/bash will fail to execute.

@bijancn
Copy link

bijancn commented Mar 26, 2024

Mhh. I think I can reproduce the issue. When running a self-built docker image on AWS EKS, I get exec /docker-entrypoint.sh: exec format error. My Dockerfile looks like this

FROM ghcr.io/nginxinc/nginx-s3-gateway/nginx-oss-s3-gateway:latest-20240227 

COPY etc/nginx/templates/default.conf.template /etc/nginx/templates/

and I built it on a Mac M1. When I change the docker build command to

docker  buildx build --platform linux/amd64 -t registry.jimdo-platform.net/jimdo/openapi-specifications:v5 .

I get a different error but at least the entry points seem to get properly loaded.

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

Successfully merging this pull request may close these issues.

3 participants