dockerTools.examples.nix: set USER in the container config

A USER is required by Nix.
See 9348f9291e/src/libutil/util.cc (L478).
wip/yesman
Antoine Eiche 5 years ago
parent cc6cf0a96a
commit 09a669478f
  1. 7
      pkgs/build-support/docker/examples.nix

@ -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…
Cancel
Save