diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-11-12 16:55:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-12 16:55:24 +0100 |
commit | 07f5a94711f602ad625e6e82e5653502a7cdb7dc (patch) | |
tree | dd25ec28a14f68a7f910f770501a142b1354e3f5 /pkg/specgen/generate/container_create.go | |
parent | 19c79eeff3c7945bea81de309874365cf916bedd (diff) | |
parent | b1c002342426fac0770e4a7d07a57018964724dd (diff) | |
download | podman-07f5a94711f602ad625e6e82e5653502a7cdb7dc.tar.gz podman-07f5a94711f602ad625e6e82e5653502a7cdb7dc.tar.bz2 podman-07f5a94711f602ad625e6e82e5653502a7cdb7dc.zip |
Merge pull request #12279 from mscherer/fix_11842
Always create working directory when using compat API
Diffstat (limited to 'pkg/specgen/generate/container_create.go')
-rw-r--r-- | pkg/specgen/generate/container_create.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/specgen/generate/container_create.go b/pkg/specgen/generate/container_create.go index 9f398a0ed..f3dc28b01 100644 --- a/pkg/specgen/generate/container_create.go +++ b/pkg/specgen/generate/container_create.go @@ -378,6 +378,9 @@ func createContainerOptions(ctx context.Context, rt *libpod.Runtime, s *specgen. if s.WorkDir == "" { s.WorkDir = "/" } + if s.CreateWorkingDir { + options = append(options, libpod.WithCreateWorkingDir()) + } if s.StopSignal != nil { options = append(options, libpod.WithStopSignal(*s.StopSignal)) } |