[英]Check docker alpine musl version
We have docker files which based on alpine linux.我们有基于 alpine linux 的 docker 文件。 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?我想让构建的容器检查
musl
库的版本,我的意思是运行容器并在 RT 中检查 musl 版本我该怎么做?
I've tried something like我试过类似的东西
docker run -it --rm alpine /bin/ash
and run并运行
musl -v
Got得到
/bin/ash: musl: not found
libc
itself is an executable. libc
本身是一个可执行文件。 You can run it and the usage message will print out the version:您可以运行它,使用消息将打印出版本:
/ # /lib/libc.musl-x86_64.so.1
musl libc (x86_64)
Version 1.1.24
Dynamic Program Loader
Usage: /lib/libc.musl-x86_64.so.1 [options] [--] pathname [args]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.