mirror of https://github.com/docker/cli.git
Merge pull request #577 from stevvooe/allocate-channel
cli/command/container: ensure channel is allocated
This commit is contained in:
commit
583015b896
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue