Comments (4)
use strace
and ldd
to check if your binary requires glibc.
if so, either recompile your binary with alpine toolset or include glibc (and any other required libs) in the image (or statically compile your binary).
tips are in #11 plus various blog posts about ldd and docker.
hth.
from docker-alpine.
Thanks for your answer. I've found out that missing some libs, here they are:
libdl.so.2 => not found
libm.so.6 => not found
libpthread.so.0 => not found
libc.so.6 => not found
The question is I couldn't add glibc via apk manager – there is only libc but this one doesn't add missing libs. Should I add glib manually?
from docker-alpine.
The question is I couldn't add glibc via apk manager – there is only libc but this one doesn't add missing libs.
fundamentally, alpine is based on musl-libc, which differs from others libc implementations like glibc.
Should I add glib manually?
you can add glibc manually like in #11 (comment) but...what if the next version of racket needs additional dynamic libs? how will you handle updates to glibc?
personally i'd try to build racket from source, preferably as a static bin that you could then copy into a runtime image. i'm not familiar with racket, so i don't even know if that's possible, but it should be.
e.g., https://github.com/jumanjiman/docker-caddy shows a simple approach to build a golang binary statically, then copy it into another image.
you could also try contacting racket upstream to see if they can add official binaries for musl-libc.
from docker-alpine.
Thanks a lot for your comprehensive reply. I'll try to build and copy static binary.
from docker-alpine.
Related Issues (20)
- gliderlabs.com does not hav a valid DNS, so docker builds with thie base image fail HOT 2
- Require image for ARM64 architecture HOT 1
- Issue in minikube docker --> ERROR: http://nl.alpinelinux.org/alpine/v3.5/main: DNS lookup error HOT 1
- Time zone is really necessary?
- Issues with wget/apk in alpine:3.13.0 and up
- dl-cdn.alpinelinux.org was offline (12:18:56am Tuesday, 15 February 2022 gmt ~ 2:52:10am Tuesday, 15 February 2022) HOT 27
- Error 503 Backend is unhealthy HOT 12
- ERROR: unable to select packages: curl (no such package): required by: world[curl] Cleaning up file based variables HOT 1
- apk updates are failing 3.15,3.17 - ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.17/main: temporary error (try again later) HOT 1
- Package Manager Broken (apk update: temporary error) HOT 1
- Some guide for install docker alpine on android device HOT 1
- Issues accessing https://dl-cdn.alpinelinux.org HOT 3
- Build mono fail in docker alpine with Segmentation fault
- My
- Slow internet, bad signature errors
- ccccccjtgkneuknjkdtekjjnhnhhivnbehlhjcudfejr HOT 1
- Nslookup doesn't work in github actions HOT 2
- dcps
- alpine:latest can't use hostname to find a server.
- building docker compose in VM Ubuntu
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-alpine.