mirror of https://github.com/docker/docs.git
commands: use in instead of os.Stdin in hijack
This commit is contained in:
parent
092c761cec
commit
da54abaf2e
|
@ -1443,7 +1443,7 @@ func (cli *DockerCli) hijack(method, path string, setRawTerminal bool, in *os.Fi
|
|||
return err
|
||||
}
|
||||
|
||||
if !term.IsTerminal(os.Stdin.Fd()) {
|
||||
if !term.IsTerminal(in.Fd()) {
|
||||
if err := <-sendStdin; err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue