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 image can't be run with my uid / gid #42

Closed
julien-lecomte opened this issue Aug 11, 2020 · 1 comment
Closed

Docker image can't be run with my uid / gid #42

julien-lecomte opened this issue Aug 11, 2020 · 1 comment

Comments

@julien-lecomte
Copy link
Contributor

When trying to unpack my module with my current user id + gid:

$ docker run --user "$(id -u):$(id -g)" --rm -it -v "$(pwd)":/nasher nwntools/nasher unpack --file=RoUM.mod
WARNING: IPv4 forwarding is disabled. Networking will not work.
docker: Error response from daemon: OCI runtime create failed: container_linux.go:349: starting container process caused "exec: \"nasher\": executable file not found in $PATH": unknown.

If I change to --user "0:$(id -g)" it works.

This is probably because the nasher binaries are installed only for root user (in /root/...)

The end-result problem is that without --user the files on my filesystem become all owned by root

@squattingmonk
Copy link
Owner

Sorry this took so long! nwntools/nasher:0.13.0 has been updated with this fix.

squattingmonk added a commit that referenced this issue Nov 19, 2020
Docker builds were broken because the nim image does not add the Nimble
bin directory to PATH. This fix solves it by copying the nasher binary
to /usr/local/bin. As a side-effect, this fixes #42, allowing you to
pass your user/group to the docker command and own the files docker
generates.
squattingmonk added a commit that referenced this issue Dec 20, 2021
This will be more consistent with the new behavior of neverwinter.nim
after [issue #42](niv/neverwinter.nim#42) was
fixed.
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

2 participants