thecodingmachine / docker-images-nodejs

A set of Node.js Docker images
MIT License
10 stars 8 forks source link

qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory #19

Closed phareal closed 2 years ago

phareal commented 2 years ago

Environment Platform: Mac M1 ARM Docker Version: 20.10.16 Node.js Version: v14 Image Tag: thecodingmachine/nodejs:14 Expected Behavior Build the nuxt js dependencies and run the project

Current Behavior When trying to run my binary in my docker node:14 image on MacbookM1, I get the following error:

qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory

Possible Solution I have no idea, but the lib in question clearly is not here on node:14 ARM64

moufmouf commented 2 years ago

Weird.... did you purge your node_modules directory and tried to run an npm install again? It may be possible that you are having old amd64 binaries in your node_modules...

phareal commented 2 years ago

Yes i have purge everything

phareal commented 2 years ago

Hello same issue with the fix on my side

adding --platform linux/amd64 permits to run the image but we have some warn

[WARN tini (9)] Tini is not running as PID 1 and isn't registered as a child subreaper. Zombie processes will not be re-parented to Tini, so zombie reaping won't work. To fix the problem, use the -s option or set the environment variable TINI_SUBREAPER to register Tini as a child subreaper, or run Tini as PID 1. v14.19.3

moufmouf commented 2 years ago

Finally closed by #24 \o/