Currently if the Docker container is started as a non-root user (eg nobody), Nix commands fail with permission errors. For example:
❯ docker run --rm -it --user nobody nixos/nix:2.16.1
bash-5.1$ nix --extra-experimental-features 'flakes nix-command' profile install nixpkgs#hello
error: could not set permissions on '/nix/var/nix/profiles/per-user' to 755: Operation not permitted
It would be nice if it were possible to use these commands as some non-root user (not necessarily "nobody") without further modifying the image.
Currently if the Docker container is started as a non-root user (eg
nobody), Nix commands fail with permission errors. For example:It would be nice if it were possible to use these commands as some non-root user (not necessarily "nobody") without further modifying the image.