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

Docker image with distroless as a base image is throwing error while deploying to AWS EKS #1585

Open
Venkatesh-Navali opened this issue May 6, 2024 · 3 comments

Comments

@Venkatesh-Navali
Copy link

Describe the bug
When using the gcr.io/distroless/java17-debian11 base image in my Dockerfile to create a Docker image and deploying the same to AWS EKS cluster, I encountered an error. and error is "exec /usr/bin/java: exec format error"

To Reproduce
Steps to reproduce the behavior:

  1. Use the 'gcr.io/distroless/java17-debian11' base image in a Dockerfile.
  2. Build the Docker image with a sample spring boot application
  3. Deploy the Docker image to an AWS EKS cluster.
  4. Observe the error message: exec /usr/bin/java: exec
    Expected behavior
    The Docker image should deploy successfully to the AWS EKS cluster without encountering the "exec /usr/bin/java: exec" error.

Console Output
exec /usr/bin/java: exec format error

Additional context
Docker Engine : 25.0.3
Docker client: 25.0.3
Docker Desktop : 4.28.0 (139021)
AWS EKS Platform Version : eks.11
Kubernetes version : 1.28

Attaching a sample Dockerfile used.
DockerFile.txt

@loosebazooka
Copy link
Member

We typically don't have the kind of eng capacity to debug these errors. You might need to do a deeper dive into the problem and if it's an actual distroless issue we can fix it. On a surface level it seems like you might have an architecture mismatch. As if you're build on a mac and deploying to an amd64 cluster.

@souphi
Copy link

souphi commented May 7, 2024

@loosebazooka
That mean there is not any known compatibility issue with AWS EKS with distroless images(gcr.io/distroless/java17-debian11).

@loosebazooka
Copy link
Member

Potentially. I have personally not seen one.

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

No branches or pull requests

3 participants