summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2020-09-23 15:44:23 -0500
committerbaude <bbaude@redhat.com>2020-09-23 15:44:23 -0500
commit139100a1f459da733c4e474a62db3d0736474158 (patch)
tree452600932e8d7c58d8e52833d977afe4d2fc5d0a /pkg
parenta7c7cd21e44b10a31ce7840d4d36f1c9c2048dc1 (diff)
downloadpodman-139100a1f459da733c4e474a62db3d0736474158.tar.gz
podman-139100a1f459da733c4e474a62db3d0736474158.tar.bz2
podman-139100a1f459da733c4e474a62db3d0736474158.zip
set interactive mode with compat create endpoint
when creating a container using the compat endpoint, the interactive bool was being hard set to false and ignoring the user's input. Signed-off-by: baude <bbaude@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r--pkg/api/handlers/compat/containers_create.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/compat/containers_create.go b/pkg/api/handlers/compat/containers_create.go
index 93e4fe540..1d0b4c45d 100644
--- a/pkg/api/handlers/compat/containers_create.go
+++ b/pkg/api/handlers/compat/containers_create.go
@@ -210,7 +210,7 @@ func makeCreateConfig(ctx context.Context, containerConfig *config.Config, input
ImageID: newImage.ID(),
BuiltinImgVolumes: nil, // podman
ImageVolumeType: "", // podman
- Interactive: false,
+ Interactive: input.OpenStdin,
// IpcMode: input.HostConfig.IpcMode,
Labels: input.Labels,
LogDriver: input.HostConfig.LogConfig.Type, // is this correct