-
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
Can't install global packages as root user in arm32v6/node images #873
Comments
I tested your Dockerfile on my Raspberry Pi 3 B+ using Raspbian GNU/Linux 9.4, with USER |
I can confirm that I'm able to do the same on my Raspberry Pi, so it seems like this issue is exclusive to platforms that need QEMU |
So, I'm not sure if this is an issue that we @nodejs/docker can solve, the QEMU configuration may also affect this problem. |
Any update? |
I had the same problem . To me the solution was to use yarn just for pm2
|
Same issue here building multi-arch images using Docker Buildx. Build command
Dockerfile (from Flood-UI/food)
It hangs forever on this line.
As work around I've changed it to this line.
Note that I've tried to build this image on a Raspberry Pi 3 Model B+ which has an ARMv7 architecture. It hangs on the same line there as well. This is the reason why I've moved to Docker Buildx on my Mac. But as described above, building for ARMv7 (and maybe other ARM variants) makes the Debug info
|
@Charl13 I have a very similar setup as you. Did you find a solution ? |
After few days of trying, I successfully built arm 32/64 bits using QEMU. Here is few things I did :
I hope that can help ;) |
Hey all,
I have a pretty standard Dockerfile for running my code on top of the
node:8-alpine
image that works fine normally, but hangs indefinitely after switching to thearm32v6/node:8-alpine
variant. The only fix I was able to get working was to switch to thenode
user before callingnpm install -g
, and then switch back to theroot
user to run (I know it's against best practices, but my main concern for now is getting the image to run without errors). This does not happen for non-global packages.Note that this isn't the same as #603 because I can't even get debug messages. I've tried this on OS X and Windows, both show the same behavior.
Dockerfile:
Build log:
The text was updated successfully, but these errors were encountered: