Installed Go binary not found in path on Alpine Linux Docker

前端 未结 6 1070
Happy的楠姐
Happy的楠姐 2020-12-22 17:54

I\'ve got a Go binary I\'m trying to run on the Alpine Docker image.

This works fine for the Docker Go binary.

docker run -it alpine:3.3 sh
apk add -         


        
6条回答
  •  抹茶落季
    2020-12-22 18:34

    RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
    

    Since the musl and glibc so are compatible, you can make this symlink and it will fix the missing dependency.

提交回复
热议问题