diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-04-12 13:17:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 13:17:02 -0400 |
commit | 87d129e805c993acbc571597baba8101afd475fe (patch) | |
tree | 9e549bdb44bdace7ad62d7efe6123377e2df7ee8 /test | |
parent | db7cd88c6781c3d42376f02b5b1547c466c45d3e (diff) | |
parent | 81a95fade593d4fda6c6f340865ae24824ac2ac8 (diff) | |
download | podman-87d129e805c993acbc571597baba8101afd475fe.tar.gz podman-87d129e805c993acbc571597baba8101afd475fe.tar.bz2 podman-87d129e805c993acbc571597baba8101afd475fe.zip |
Merge pull request #13788 from flouthoc/support-volume-opts
run, mount: allow setting driver specific option using `volume-opt=`
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/run_volume_test.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/e2e/run_volume_test.go b/test/e2e/run_volume_test.go index 471b3a342..4887197f6 100644 --- a/test/e2e/run_volume_test.go +++ b/test/e2e/run_volume_test.go @@ -797,6 +797,19 @@ VOLUME /test/`, ALPINE) Expect(session.OutputToString()).Should(Equal("888:888")) }) + It("podman run with --mount and named volume with driver-opts", func() { + // anonymous volume mount with driver opts + vol := "type=volume,source=test_vol,dst=/test,volume-opt=type=tmpfs,volume-opt=device=tmpfs,volume-opt=o=nodev" + session := podmanTest.Podman([]string{"run", "--rm", "--mount", vol, ALPINE, "echo", "hello"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + + inspectVol := podmanTest.Podman([]string{"volume", "inspect", "test_vol"}) + inspectVol.WaitWithDefaultTimeout() + Expect(inspectVol).Should(Exit(0)) + Expect(inspectVol.OutputToString()).To(ContainSubstring("nodev")) + }) + It("volume permissions after run", func() { imgName := "testimg" dockerfile := fmt.Sprintf(`FROM %s |