summaryrefslogtreecommitdiff
path: root/libpod/container_attach.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2018-04-12 14:00:18 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-04-13 18:43:44 +0000
commit2961c9e293c162f0d4076a8c910bcc60c06610c0 (patch)
treeab3471fed72a2e2eb1cec4e165371614b80c2801 /libpod/container_attach.go
parent5eb9ebcf597c0a658c6a2ea4ea1e970f014e3d78 (diff)
downloadpodman-2961c9e293c162f0d4076a8c910bcc60c06610c0.tar.gz
podman-2961c9e293c162f0d4076a8c910bcc60c06610c0.tar.bz2
podman-2961c9e293c162f0d4076a8c910bcc60c06610c0.zip
Allowing attaching stdin to non-interactive containers
Mimics docker's behavior Signed-off-by: Matthew Heon <matthew.heon@gmail.com> Closes: #608 Approved by: baude
Diffstat (limited to 'libpod/container_attach.go')
-rw-r--r--libpod/container_attach.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/libpod/container_attach.go b/libpod/container_attach.go
index 8b0aaed06..f5b97c2dd 100644
--- a/libpod/container_attach.go
+++ b/libpod/container_attach.go
@@ -49,12 +49,6 @@ func (c *Container) attach(streams *AttachStreams, keys string, resize <-chan re
return errors.Wrapf(ErrInvalidArg, "must provide at least one stream to attach to")
}
- // Do not allow stdin on containers without Stdin set
- // Conmon was not configured properly
- if streams.AttachInput && !c.config.Stdin {
- return errors.Wrapf(ErrInvalidArg, "this container was not created as interactive, cannot attach stdin")
- }
-
// Check the validity of the provided keys first
var err error
detachKeys := []byte{}