From ac66ff97ed1f86d2ac98e1f49cfff427fe1e526d Mon Sep 17 00:00:00 2001 From: Mirco Bauer Date: Fri, 3 Jun 2022 15:32:43 +0800 Subject: [PATCH] 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. --- doc/builders/images/dockertools.section.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/builders/images/dockertools.section.md b/doc/builders/images/dockertools.section.md index 458b0b36720f..d7f8741437cc 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