Not found encountered in docker alpine image

1. Problem: sh: xxx: not found is encountered in docker alpine image

For example

# monerod  //注:此可执行文件已放到/usr/local/bin/ 
sh: monerod: not found
2. Reasons

Since the alpine image uses musl libc instead of gnu libc, /lib64/ does not exist. But they are compatible. You can create a soft connection and try it.

3. Solution: Create a soft link to lib64
mkdir /lib64
ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2

Guess you like

Origin blog.csdn.net/cljdsc/article/details/132866505