dotcloud/docker — pull request #6133 by cyphar (2014-05-31 04:25:47+00:00)
Title: Fix container attach API to stop silently ignoring errors

This patchset fixes several issues regarding `/containers/{id}/attach`, where no error code is returned when trying to attach to a stopped container (rather, the error was ignored silently).

It should be noted that this patchset does change the API, and will break older clients (so after building, ensure that both the docker daemon and client are the same version -- otherwise `docker run -i` won't function normally).

Docker-DCO-1.1-Signed-off-by: Aleksa Sarai (github: cyphar)

Fixes #6108

/ping @vieux @shykes