Merge pull request #52959 from nlewo/runAsRootParentImage
dockerTools.example.runAsRootParentImage: init
commitbb86d0ca240deb57cd2a908a58b5496ee81f4987
authorlewo <lewo@abesis.fr>
dateSat 29 Dec 2018, 12:56 (8 years ago)
parent45f545343cbba0
pkgs/build-support/docker/examples.nix+9
@@ -176,4 +176,13 @@ rec {
176176 ];
177177 };
178178 };
179+
180+ # 12. example of running something as root on top of a parent image
181+ # Regression test related to PR #52109
182+ runAsRootParentImage = buildImage {
183+ name = "runAsRootParentImage";
184+ tag = "latest";
185+ runAsRoot = "touch /example-file";
186+ fromImage = bash;
187+ };
179188}