mirror of https://github.com/docker/docs.git
Fix logs -f hanging on stopped containers
Fixes #7020 Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
This commit is contained in:
parent
366fe67946
commit
badf8247af
|
@ -111,7 +111,7 @@ func (daemon *Daemon) ContainerLogs(job *engine.Job) engine.Status {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if follow {
|
if follow && container.State.IsRunning() {
|
||||||
errors := make(chan error, 2)
|
errors := make(chan error, 2)
|
||||||
if stdout {
|
if stdout {
|
||||||
stdoutPipe := container.StdoutLogPipe()
|
stdoutPipe := container.StdoutLogPipe()
|
||||||
|
|
Loading…
Reference in New Issue