cli/command/container: ensure channel is allocated

Signed-off-by: Stephen J Day <stephen.day@docker.com>
(cherry picked from commit e78772af4d)
Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
This commit is contained in:
Stephen J Day
2017-09-29 18:14:51 -07:00
committed by Eli Uriegas
parent 328a5917ad
commit 7b99808cac
+4 -1
View File
@@ -290,8 +290,11 @@ func attachContainer(
return nil, errAttach
}
ch := make(chan error, 1)
*errCh = ch
go func() {
*errCh <- func() error {
ch <- func() error {
streamer := hijackedIOStreamer{
streams: dockerCli,
inputStream: in,