alpine base image use

Knowledge about Alpine, refer to the links below

A container inside alpinedocker will run hello error / bin / sh: hello: notfound

Alpine docker container inside will run hello error / bin / sh: hello: not found
While the same hello executable in Ubuntu system can run properly.
Solution, refer to the link below in the final content.

gnu libc and musl libc debate

These finally gave in this issue has been resolved, because there is no fun to look at, the reader is to read on their own
https://github.com/ibmdb/node-ibm_db/issues/217
Use of content here:
https://github.com/sgerrand/alpine-pkg-glibc
In simple terms, the solution is installed inside the Alpine glibc, so that is no longer Alpine Alpine

verification

After reading fun, now take 1 minute to quickly solve some remaining issues. Back issues on-site. Installed in accordance with the following three steps
 
Step 1: Download key
~ # wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub
~ # echo $?
0
~ # ls /etc/apk/keys/sgerrand.rsa.pub
/etc/apk/keys/sgerrand.rsa.pub
~ #
Step 2: Download the apk installation file
~ # wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.29-r0/glibc-2.29-r0.apk
Connecting to github.com (13.229.188.59:443)
Connecting to github-production-release-asset-2e65be.s3.amazonaws.com (52.216.176.203:443)
glibc-2.29-r0.apk    100% |****************************************************************************************| 2006k  0:00:00 ETA
~ # ls
glibc-2:29 -r0.apk
Step 3: Installation
~ # apk add glibc-2.29-r0.apk
(1/1) Installing glibc (2.29-r0)
OK: 9 MiB in 15 packages

Guess you like

Origin www.cnblogs.com/embedded-linux/p/12078154.html