summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-06-12 06:23:29 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-06-12 07:15:57 -0400
commit2386a2ef2dd3ab4976a3e1dd6d76616e8558d85b (patch)
tree61611cb2702b4616c9e52bdf542948c191f97bc7 /cmd/podman
parent8aa5cf3d45998bc92eaafd67ab2a59e3722bade4 (diff)
downloadpodman-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 'cmd/podman')
-rw-r--r--cmd/podman/common/specgen.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd/podman/common/specgen.go b/cmd/podman/common/specgen.go
index fee9d8c7b..2a5ebea3c 100644
--- a/cmd/podman/common/specgen.go
+++ b/cmd/podman/common/specgen.go
@@ -385,11 +385,7 @@ func FillOutSpecGen(s *specgen.SpecGenerator, c *ContainerCLIOpts, args []string
}
s.Annotations = annotations
- workDir := "/"
- if wd := c.Workdir; len(wd) > 0 {
- workDir = wd
- }
- s.WorkDir = workDir
+ s.WorkDir = c.Workdir
entrypoint := []string{}
userCommand := []string{}
if c.Entrypoint != nil {