Fixes #6103
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
| ... | ... |
@@ -873,3 +873,15 @@ func TestThatCharacterDevicesActLikeCharacterDevices(t *testing.T) {
|
| 873 | 873 |
|
| 874 | 874 |
logDone("run - test that character devices work.")
|
| 875 | 875 |
} |
| 876 |
+ |
|
| 877 |
+func TestRunUnprivilegedWithChroot(t *testing.T) {
|
|
| 878 |
+ cmd := exec.Command(dockerBinary, "run", "busybox", "chroot", "/", "true") |
|
| 879 |
+ |
|
| 880 |
+ if _, err := runCommand(cmd); err != nil {
|
|
| 881 |
+ t.Fatal(err) |
|
| 882 |
+ } |
|
| 883 |
+ |
|
| 884 |
+ deleteAllContainers() |
|
| 885 |
+ |
|
| 886 |
+ logDone("run - unprivileged with chroot")
|
|
| 887 |
+} |