diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-06-12 06:23:29 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-06-12 07:15:57 -0400 |
commit | 2386a2ef2dd3ab4976a3e1dd6d76616e8558d85b (patch) | |
tree | 61611cb2702b4616c9e52bdf542948c191f97bc7 /test | |
parent | 8aa5cf3d45998bc92eaafd67ab2a59e3722bade4 (diff) | |
download | podman-2386a2ef2dd3ab4976a3e1dd6d76616e8558d85b.tar.gz podman-2386a2ef2dd3ab4976a3e1dd6d76616e8558d85b.tar.bz2 podman-2386a2ef2dd3ab4976a3e1dd6d76616e8558d85b.zip |
Do not default WorkingDir to / on client side
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/images_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/images_test.go b/test/e2e/images_test.go index b16cff411..0ee7260c2 100644 --- a/test/e2e/images_test.go +++ b/test/e2e/images_test.go @@ -186,6 +186,17 @@ RUN apk update && apk add strace Expect(len(result.OutputToStringArray()) >= 1).To(BeTrue()) }) + It("podman images workingdir from image", func() { + dockerfile := `FROM docker.io/library/alpine:latest +WORKDIR /test +` + podmanTest.BuildImage(dockerfile, "foobar.com/workdir:latest", "false") + result := podmanTest.Podman([]string{"run", "foobar.com/workdir:latest", "pwd"}) + result.WaitWithDefaultTimeout() + Expect(result).Should(Exit(0)) + Expect(result.OutputToString()).To(Equal("/test")) + }) + It("podman images filter after image", func() { podmanTest.RestoreAllArtifacts() rmi := podmanTest.PodmanNoCache([]string{"rmi", "busybox"}) |