-
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
Node.js image on Alpine 3.16 doesn't work since 18.6.0 update #1749
Comments
I’m dealing with the same problem as you, but I'm using node18-bullseye |
I "fixed" this by downgrading NPM in Dockerfile: RUN ["npm", "i", "npm@8.12", "-g"] |
I have recently run into this issue today because the node 16 images just updated from 16.16 to 16.17 as of yesterday (Aug 16, 2022). This version of node has updated npm 8.11.0 to npm 8.15.0 which has this exact issue. I was ready to open an issue on the npm/cli repository when before hitting submit I added A consideration is that I am using the --offline and --logs-max=0 flags in read-only fs mode to silence other npm errors. |
In our case, executing a command via In the end, the workaround was to execute the command directly in |
A colleague just pointed out that the proper fix for this is to set This would probably also fix #1734 and #740, both of which already suggest to set |
@rene-leanix thanks, fix our issue as well! 👍 |
I have a docker image of my application that was running fine til a few days ago. Now it is giving the same error. Same image was working fine till a few days ago. None of the solution works other than creating a new image |
@ShadabFaiz are you using the |
Should we close this? Alpine 3.16 hasn't been supported for almost a year |
This still happens on any version newer than the mentioned in this issue. |
yes. I'm using
Also, when does npm decide it needs to write to the cache? |
The fixed mentioned above does work Before:
After:
|
for now, we decided to completely skip |
Closing this because it's npm fault and I don't run my apps through it for a long time now |
Environment
Expected Behavior
App should start normally, as it was on
18.5.0-alpine3.16
.Current Behavior
Container is restarting with this output:
When I start it without
--read-only
flag, the same happens, but it says onlysh: /tmp/start6578863454.sh: Permission denied
.Steps to Reproduce
docker run --name app --read-only --restart unless-stopped -d image # or without read-only docker run --name app --restart unless-stopped -d image
The text was updated successfully, but these errors were encountered: