forked from mirrors/nixpkgs
dockerTools.examples.nix: set USER in the container config
A USER is required by Nix.
See 9348f9291e/src/libutil/util.cc (L478)
.
This commit is contained in:
parent
cc6cf0a96a
commit
09a669478f
|
@ -117,7 +117,12 @@ rec {
|
|||
pkgs.nix
|
||||
];
|
||||
config = {
|
||||
Env = [ "NIX_PAGER=cat" ];
|
||||
Env = [
|
||||
"NIX_PAGER=cat"
|
||||
# A user is required by nix
|
||||
# https://github.com/NixOS/nix/blob/9348f9291e5d9e4ba3c4347ea1b235640f54fd79/src/libutil/util.cc#L478
|
||||
"USER=nobody"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue