cli/command/container: ensure channel is allocated

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2017-09-29 18:12:03 -07:00
parent b75be206d0
commit e78772af4d
No known key found for this signature in database
GPG Key ID: 67B3DED84EDC823F
1 changed files with 4 additions and 1 deletions

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,