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/api/handlers | |
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/api/handlers')
-rw-r--r-- | pkg/api/handlers/compat/containers_create.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/api/handlers/compat/containers_create.go b/pkg/api/handlers/compat/containers_create.go index 94d20a04a..1e175d664 100644 --- a/pkg/api/handlers/compat/containers_create.go +++ b/pkg/api/handlers/compat/containers_create.go @@ -86,6 +86,8 @@ func CreateContainer(w http.ResponseWriter, r *http.Request) { utils.Error(w, "Something went wrong.", http.StatusInternalServerError, errors.Wrap(err, "fill out specgen")) return } + // moby always create the working directory + sg.CreateWorkingDir = true ic := abi.ContainerEngine{Libpod: runtime} report, err := ic.ContainerCreate(r.Context(), sg) |