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
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.
The text was updated successfully, but these errors were encountered:
exarkun
added a commit
to exarkun/tahoe-lafs
that referenced
this issue
Jul 20, 2023
We have root on CircleCI in the docker container. We can't currently shed
them before we get inside the flake app because we can't run `nix build` as
non-root inside the nix container. :/
nix-community/docker-nixpkgs#62
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.
The text was updated successfully, but these errors were encountered: