summary refs log tree commit diff
path: root/doc/builders
diff options
context:
space:
mode:
authorMirco Bauer <meebey@meebey.net>2022-06-03 15:32:43 +0800
committerMirco Bauer <meebey@meebey.net>2022-06-05 09:45:58 +0800
commitac66ff97ed1f86d2ac98e1f49cfff427fe1e526d (patch)
treebbd1b4ff100413f725f341d53e376ab2278db36d /doc/builders
parente6776218b674f80e05bec30d4f7667ed5b77cf7f (diff)
downloadnixpkgs-ac66ff97ed1f86d2ac98e1f49cfff427fe1e526d.tar
nixpkgs-ac66ff97ed1f86d2ac98e1f49cfff427fe1e526d.tar.gz
nixpkgs-ac66ff97ed1f86d2ac98e1f49cfff427fe1e526d.tar.bz2
nixpkgs-ac66ff97ed1f86d2ac98e1f49cfff427fe1e526d.tar.lz
nixpkgs-ac66ff97ed1f86d2ac98e1f49cfff427fe1e526d.tar.xz
nixpkgs-ac66ff97ed1f86d2ac98e1f49cfff427fe1e526d.tar.zst
nixpkgs-ac66ff97ed1f86d2ac98e1f49cfff427fe1e526d.zip
doc/builders/images/dockertools: improve shadowSetup example
The example snippet will fail with this error as it is not self contained and
assumes `shadowSetup` was given:

    $ nix-build docker-image.nix
    error: undefined variable 'shadowSetup' at docker-image.nix:20:7

Instead use the full reference to `shadowSetup` in the example so it will work
as stated.
Diffstat (limited to 'doc/builders')
-rw-r--r--doc/builders/images/dockertools.section.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/builders/images/dockertools.section.md b/doc/builders/images/dockertools.section.md
index 458b0b36720..d7f8741437c 100644
--- a/doc/builders/images/dockertools.section.md
+++ b/doc/builders/images/dockertools.section.md
@@ -302,7 +302,7 @@ buildImage {
 
   runAsRoot = ''
     #!${pkgs.runtimeShell}
-    ${shadowSetup}
+    ${pkgs.dockerTools.shadowSetup}
     groupadd -r redis
     useradd -r -g redis redis
     mkdir /data