diff options
author | lewo <lewo@abesis.fr> | 2018-12-29 12:56:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-29 12:56:47 +0100 |
commit | bb86d0ca240deb57cd2a908a58b5496ee81f4987 (patch) | |
tree | f7a86ddae9235285c0fe489b842e49352519646d /pkgs/build-support/docker | |
parent | 45f54533595c86ac704c8d63b0b0c74407761e02 (diff) | |
parent | 43cbba0274446797f6a8b3b26c8ac2bf5c792ebe (diff) |
Merge pull request #52959 from nlewo/runAsRootParentImage
dockerTools.example.runAsRootParentImage: init
Diffstat (limited to 'pkgs/build-support/docker')
-rw-r--r-- | pkgs/build-support/docker/examples.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/build-support/docker/examples.nix b/pkgs/build-support/docker/examples.nix index 090bfafa085..a5a65fb2a40 100644 --- a/pkgs/build-support/docker/examples.nix +++ b/pkgs/build-support/docker/examples.nix @@ -176,4 +176,13 @@ rec { ]; }; }; + + # 12. example of running something as root on top of a parent image + # Regression test related to PR #52109 + runAsRootParentImage = buildImage { + name = "runAsRootParentImage"; + tag = "latest"; + runAsRoot = "touch /example-file"; + fromImage = bash; + }; } |