You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Platform: Linux 7f44813ba8d7 5.13.0-35-generic 40~20.04.1-Ubuntu SMP Mon Mar 7 09:18:32 UTC 2022 x86_64 GNU/Linux
Docker Version: 20.10.13
Node.js Version: 16.13.2
Image Tag: node:16.13.2-buster
Expected Behavior
When container is run with user: 0:0 (root) the function process.getuid() should return 0
Current Behavior
If we have a script like "test": "node -p \"process.getuid()\"" defined in package.json when we run it with npm run test it should output 0 but it prints 1000 instead (node user). If we lunch the same command without using npm run the output is correct:
Environment
Expected Behavior
When container is run with
user: 0:0
(root) the functionprocess.getuid()
should return0
Current Behavior
If we have a script like
"test": "node -p \"process.getuid()\""
defined in package.json when we run it withnpm run test
it should output0
but it prints 1000 instead (node user). If we lunch the same command without usingnpm run
the output is correct:Possible Solution
I tried to use
and other workaround without any success
Steps to Reproduce
Described above
The text was updated successfully, but these errors were encountered: