Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.02 KB

docker-linux.md

File metadata and controls

51 lines (36 loc) · 1.02 KB

Docker / Linux

{% hint style="info" %} If you use alpine or slim version of node images, some errors may happen and you can fix with this minimal guide {% endhint %}

For git missing error

# FROM ...
RUN apk add --no-cache git
# your scripts

For Alpine incompatible error

# your scripts
RUN ln -s /lib/libc.musl-x86_64.so.1 /lib/ld-linux-x86-64.so.2

# your commands
# CMD ["node", "server.js"]

For CentOS 7 glibc 2.18 not found error

First, please try

# FROM ...
RUN apk add --no-cache gcompat
# your scripts

or try

# FROM ...
RUN apk add --no-cache libc6-compat
RUN mv /lib64/ld-linux-x86-64.so.2 /lib
# your scripts

{% hint style="info" %} If these solutions didn't work, try solutions from here and here {% endhint %}

Multi-thread / Cluster

Clustering is available on Linux, if your OS isn't Linux, you can try Docker as it works on Docker Linux container