From 2386a2ef2dd3ab4976a3e1dd6d76616e8558d85b Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Fri, 12 Jun 2020 06:23:29 -0400 Subject: Do not default WorkingDir to / on client side Signed-off-by: Daniel J Walsh --- cmd/podman/common/specgen.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cmd/podman') 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 { -- cgit v1.2.3-54-g00ecf