Check docker alpine musl version


We have docker files which based on alpine linux. I want for the built container to check the version of the musl library , I mean run the container and and in RT check the musl version how can I do that ?

I've tried something like

docker run -it --rm alpine /bin/ash

and run

musl -v


/bin/ash: musl: not found

answered question

1 Answer


libc itself is an executable. You can run it and the usage message will print out the version:

/ # /lib/
musl libc (x86_64)
Version 1.1.24
Dynamic Program Loader
Usage: /lib/ [options] [--] pathname [args]

posted this

Have an answer?


Please login first before posting an answer.