forked from mirrors/nixpkgs
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.
This commit is contained in:
parent
9d9a993b73
commit
43cbba0274
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue