summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorGiuseppe Scrivano <gscrivan@redhat.com>2019-06-13 11:28:24 +0200
committerGiuseppe Scrivano <gscrivan@redhat.com>2019-06-13 15:32:45 +0200
commit23efe4cb819b9fb306155ab25db7e2459aba63bb (patch)
tree03b9943dfd5a36e942be6f2ca46a84daf0408d2e /test/e2e
parent97f4818ce1e09dd56dc2be820930924e870827e9 (diff)
downloadpodman-23efe4cb819b9fb306155ab25db7e2459aba63bb.tar.gz
podman-23efe4cb819b9fb306155ab25db7e2459aba63bb.tar.bz2
podman-23efe4cb819b9fb306155ab25db7e2459aba63bb.zip
storage: support --mount type=bind,bind-nonrecursive
add support for not recursive bind mounts. Closes: https://github.com/containers/libpod/issues/3314 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/run_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go
index 31720ea04..3ba3c2bb3 100644
--- a/test/e2e/run_test.go
+++ b/test/e2e/run_test.go
@@ -659,6 +659,14 @@ USER mail`
Expect(isSharedOnly).Should(BeTrue())
})
+ It("podman run --mount type=bind,bind-nonrecursive", func() {
+ SkipIfRootless()
+ session := podmanTest.Podman([]string{"run", "--mount", "type=bind,bind-nonrecursive,slave,src=/,target=/host", fedoraMinimal, "findmnt", "-nR", "/host"})
+ session.WaitWithDefaultTimeout()
+ Expect(session.ExitCode()).To(Equal(0))
+ Expect(len(session.OutputToStringArray())).To(Equal(1))
+ })
+
It("podman run --pod automatically", func() {
session := podmanTest.Podman([]string{"run", "--pod", "new:foobar", ALPINE, "ls"})
session.WaitWithDefaultTimeout()