-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent or wrong architecture tags, cannot run or build on a raspberry pi 4 #1589
Comments
I believe it is related to the base image choice. I have tried arm32v7/node:16-slim, which is debian based, it works fine. But arm32v7/node:16-alpine, it still get
But we still want alpine to be our baseimage, right? |
Edit: It seems like the solution is to use Alpine 3.12 or lower This is a very frustrating issue, particularly for cross-compiling with alpine images (and since v16 is the active LTS release). Here's a non-exhaustive list of Node images that I've tested on a Raspberry Pi 3 Model B with the command
|
Can you reproduce with the Alpine-provided package? # make sure you are getting the arm32v7 image to have a valid comparison
FROM arm32v7/alpine:3.14
RUN apk add --no-cache nodejs npm
CMD [ "node" ] If it works, then maybe something from their build process (or custom patches) could be useful? (https://git.alpinelinux.org/aports/tree/main/nodejs?h=3.14-stable) |
It's reproducible with Changing seccomp to docker run --rm --platform linux/arm/v7 --security-opt seccomp=unconfined node:17.1.0-alpine3.14 Looks like one of the best solutions for Raspberry Pi OS is to manually update libseccomp to at least v2.4.2 (it has v2.3.3 currently). Node images with the latest Alpine base image work as expected after running the following: wget http://ftp.debian.org/debian/pool/main/libs/libseccomp/libseccomp2_2.5.3-1_armhf.deb
sudo dpkg -i libseccomp2_2.5.3-1_armhf.deb
sudo systemctl restart docker |
Kudos to @axelstudios for the list. I had a Dockerfile with |
That release is no longer supported and probably is missing several security patches |
The latest Raspbian 11 Bulleye could upgrade |
Default alpine image stopped working from version 16-alpine on armv7, cu
Keeps failing with:
|
As noted earlier, the answer is to update
I also recommend updating (related issues #1543, docker-library/postgres#812 (comment), redis/docker-library-redis#269 (comment)) |
Environment
Linux raspberrypi 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/Linux
Expected Behavior
Running
node
images that have the matchingOS/ARCH
should work.Current Behavior
It's hit or miss:
But this works:
Possible Solution
I don't know whats going on here but there are related issues around building and running for arm where the platform architecture doesn't match:
Additional Information
The text was updated successfully, but these errors were encountered: