Closed alex-arana closed 1 year ago
Thanks for reporting this. A change was made to Corretto on Linux to use the system zlib. You will need to pull that library in to your distroless image.
You can find more information in https://github.com/corretto/corretto-17/issues/118.
Describe the bug
A stripped-down version of
amazoncorretto:17
(currently17.0.8
) is being used to package a Java application on top of a distroless image. At runtime, when launching the application, the container returns the following error:To Reproduce
Create a Docker image from the following Dockerfile using
docker build -t mycorretto:17 .
:Then run the image's default entrypoint using
docker run --rm -it mycorretto:17
Expected behavior
Expect to see java version displayed on the console, instead an error is output as per bug description.
Platform information
Additional context
Modifying the FROM statement on line #1 as follows fixes the problem: