squattingmonk/nasher

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

Closed this issue · 1 comments

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

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