Skip to content
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

docker run -u 1011 fails #354

Open
urigg opened this issue Aug 30, 2023 · 0 comments
Open

docker run -u 1011 fails #354

urigg opened this issue Aug 30, 2023 · 0 comments

Comments

@urigg
Copy link

urigg commented Aug 30, 2023

Running the docker image with a different uid as described in the readme fails since 0.11.4 and newer because of npm complaining on inaccessible files. Works with the default 1000 uid.

> tedicross@0.11.4 start
> node dist/main.js -c data/settings.yaml

npm ERR! code EACCES
npm ERR! syscall mkdir
npm ERR! path /.npm
npm ERR! errno -13
npm ERR! 
npm ERR! Your cache folder contains root-owned files, due to a bug in
npm ERR! previous versions of npm which has since been addressed.
npm ERR! 
npm ERR! To permanently fix this problem, please run:
npm ERR!   sudo chown -R 1011:0 "/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /.npm/_logs
npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant