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
|
return nil, errAttach
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ch := make(chan error, 1)
|
||||||
|
*errCh = ch
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
*errCh <- func() error {
|
ch <- func() error {
|
||||||
streamer := hijackedIOStreamer{
|
streamer := hijackedIOStreamer{
|
||||||
streams: dockerCli,
|
streams: dockerCli,
|
||||||
inputStream: in,
|
inputStream: in,
|
||||||
|
|
Loading…
Reference in New Issue