dockerTools.examples.runAsRootParentImage: init
Example of running something as root on top of a parent image.
This is a regression test related to the PR #52109.
commit43cbba0274446797f6a8b3b26c8ac2bf5c792ebe
authorAntoine Eiche <lewo@abesis.fr>
dateThu 27 Dec 2018, 11:10 (8 years ago)
parent9d9a993
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}