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

Fail to run as image #36

Closed
jyvern opened this issue Feb 26, 2023 · 3 comments
Closed

Fail to run as image #36

jyvern opened this issue Feb 26, 2023 · 3 comments

Comments

@jyvern
Copy link

jyvern commented Feb 26, 2023

I've cloned repository to build the most recent image :
docker build . -t xxxx/flashmq:v230226.2208
and pushed it.
When I restart my container with this new image I get the following error 👍
flashmq | /bin/flashmq: error while loading shared libraries: libresolv.so.2: cannot open shared object file: No such file or directory
several times
It's the same result if I try with the v1.2.1 code source

@halfgaar
Copy link
Owner

Hmm, Docker... libresolv is part of libc. One can't even rely on that?

I even tried switching to Debian Bullseye full for the base image, but that didn't fix it. Will be continued.

@jyvern
Copy link
Author

jyvern commented Feb 27, 2023

I've succeeded with the Dockerfile of Pull requests #8 and added the following line :

COPY --from=build /usr/x86_64-linux-gnu/lib/libresolv.so.2 /usr/x86_64-linux-gnu/lib/libresolv.so.2

halfgaar added a commit that referenced this issue Feb 27, 2023
@halfgaar
Copy link
Owner

It was because the run image was very minimally composed and created as a separate stage. It's fixed now, in master.

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

2 participants