diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-14 20:28:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-14 20:28:32 +0200 |
commit | 5d1144062a534b9ec504ee2866cc90ecea16358d (patch) | |
tree | c5a51f0da9d2f4dfe75b64cf24bf777a8a38a24b /test | |
parent | dca6d316ccec97a80d93218f8a2a6d3df2af24b3 (diff) | |
parent | 14e5d1c15da82f7eb315c320765aeca69f4b58af (diff) | |
download | podman-5d1144062a534b9ec504ee2866cc90ecea16358d.tar.gz podman-5d1144062a534b9ec504ee2866cc90ecea16358d.tar.bz2 podman-5d1144062a534b9ec504ee2866cc90ecea16358d.zip |
Merge pull request #15793 from giuseppe/fix-volume-subpath-lookup
libpod: fix lookup for subpath in volumes
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/run_working_dir_test.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/e2e/run_working_dir_test.go b/test/e2e/run_working_dir_test.go index ff91a420f..84792481f 100644 --- a/test/e2e/run_working_dir_test.go +++ b/test/e2e/run_working_dir_test.go @@ -46,6 +46,15 @@ var _ = Describe("Podman run", func() { Expect(session).Should(Exit(126)) }) + It("podman run a container using a --workdir under a bind mount", func() { + volume, err := CreateTempDirInTempDir() + Expect(err).To(BeNil()) + + session := podmanTest.Podman([]string{"run", "--volume", fmt.Sprintf("%s:/var_ovl/:O", volume), "--workdir", "/var_ovl/log", ALPINE, "true"}) + session.WaitWithDefaultTimeout() + Expect(session).Should(Exit(0)) + }) + It("podman run a container on an image with a workdir", func() { dockerfile := fmt.Sprintf(`FROM %s RUN mkdir -p /home/foobar /etc/foobar; chown bin:bin /etc/foobar |