summaryrefslogtreecommitdiffstats
path: root/pkgs/build-support/docker
diff options
context:
space:
mode:
authorUtku Demir <me@utdemir.com>2020-06-21 12:23:55 +1200
committerUtku Demir <me@utdemir.com>2020-06-21 12:35:39 +1200
commit16199521eaaf5d31952c19e44bcca205959df57f (patch)
tree5d654cab2361ee00d0b1dc920fe99f8a4b2b061e /pkgs/build-support/docker
parentfe71abfc12ede6700f599a08c7528fe66461486f (diff)
stream_layered_image: Always set uid and gid to root
Diffstat (limited to 'pkgs/build-support/docker')
-rw-r--r--pkgs/build-support/docker/stream_layered_image.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/build-support/docker/stream_layered_image.py b/pkgs/build-support/docker/stream_layered_image.py
index 5d251e8bfb05..a9de10f9efaa 100644
--- a/pkgs/build-support/docker/stream_layered_image.py
+++ b/pkgs/build-support/docker/stream_layered_image.py
@@ -67,6 +67,10 @@ def archive_paths_to(obj, paths, mtime, add_nix, filter=None):
def apply_filters(ti):
ti.mtime = mtime
+ ti.uid = 0
+ ti.gid = 0
+ ti.uname = "root"
+ ti.gname = "root"
return filter(ti)
def dir(path):