Merge pull request #75038 from nlewo/fix-dockertools

dockerTools.examples.nix: set USER in the container config
This commit is contained in:
lewo 2019-12-06 08:59:15 +01:00 committed by GitHub
commit 4c1f7320ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"
];
};
};