Merge pull request #5852 from autc04/docker-tmp-permissions

docker.nix: set correct permissions on /tmp (fix #5851)
This commit is contained in:
Eelco Dolstra 2022-01-03 14:35:31 +01:00 committed by GitHub
commit 1c099dee67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -232,6 +232,9 @@ pkgs.dockerTools.buildLayeredImageWithNixDb {
rm -rf nix-support
ln -s /nix/var/nix/profiles nix/var/nix/gcroots/profiles
'';
fakeRootCommands = ''
chmod 1777 tmp
'';
config = {
Cmd = [ "/root/.nix-profile/bin/bash" ];