mirror of https://github.com/docker/cli.git
cli/command/container: ensure channel is allocated
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
b75be206d0
commit
e78772af4d
|
@ -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