From 2961c9e293c162f0d4076a8c910bcc60c06610c0 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Thu, 12 Apr 2018 14:00:18 -0400 Subject: Allowing attaching stdin to non-interactive containers Mimics docker's behavior Signed-off-by: Matthew Heon Closes: #608 Approved by: baude --- libpod/container_attach.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'libpod') 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{} -- cgit v1.2.3-54-g00ecf