summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2020-09-23 15:44:23 -0500
committerMatthew Heon <mheon@redhat.com>2020-09-25 11:09:17 -0400
commite72592c25d5d5b44669fd2975c5f6ec690ce8bfa (patch)
tree14c3d085f6fa9e1d8486d662d5479fddae3de7aa
parent0b8456b44cfe0fb82e293df227a43070677f15f7 (diff)
downloadpodman-e72592c25d5d5b44669fd2975c5f6ec690ce8bfa.tar.gz
podman-e72592c25d5d5b44669fd2975c5f6ec690ce8bfa.tar.bz2
podman-e72592c25d5d5b44669fd2975c5f6ec690ce8bfa.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>
-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