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

Missing liblzma.so.5 in distroless/cc base image #1584

Open
insistedMarin opened this issue Feb 23, 2025 · 1 comment
Open

Missing liblzma.so.5 in distroless/cc base image #1584

insistedMarin opened this issue Feb 23, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@insistedMarin
Copy link

Hi there,

I encountered an issue when running the iggy-server binary in the distroless/cc base image. The container fails to start with the following error:

[+] Running 3/3
 - Network iggy-network       Created                                                                                                                                     0.1s 
 - Volume "iggy_iggy-server"  Created                                                                                                                                     0.0s
 - Container iggy-server      Created                                                                                                                                     0.2s 
Attaching to iggy-server
iggy-server  | /iggy-server: error while loading shared libraries: liblzma.so.5: cannot open shared object file: No such file or directory
iggy-server exited with code 0

It seems the distroless/cc image does not include the liblzma.so.5 library, which is required by the iggy-server binary. I was able to resolve this by switching to a debian:bullseye-slim base image and installing the library manually.

Steps to Reproduce:

  1. Use the provided Dockerfile and docker-compose.yml to set up the project.
  2. Run docker compose up.
  3. Observe the error message in the logs.

Expected Behavior:
The iggy-server container should start successfully without any missing library errors.

Actual Behavior:
The container fails to start due to the missing liblzma.so.5 library.

Proposed Solution:

Using a base image that includes liblzma.so.5 (e.g., debian or ubuntu).

Or, provide a pre-built Docker image that includes all necessary dependencies.

Thank you for your attention to this issue!

@hubcio
Copy link
Contributor

hubcio commented Feb 23, 2025

Hey! Thanks, we are aware of that, we will fix it soon.
You can use our official registry with prebuilt images which are using musl:
https://hub.docker.com/r/iggyrs/iggy
docker run -p 8080:8080 -p 3000:3000 -p 8090:8090 iggyrs/iggy:latest

let me know if that is satisfying answer, or if you really need to build image yourself :)

@hubcio hubcio added the bug Something isn't working label Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants