mirror of
https://github.com/clearlinux/docker.git
synced 2026-08-22 05:56:17 +00:00
Only stream logs when container is running
This commit is contained in:
+1
-1
@@ -1530,7 +1530,7 @@ func (cli *DockerCli) CmdLogs(args ...string) error {
|
||||
v.Set("logs", "1")
|
||||
v.Set("stdout", "1")
|
||||
v.Set("stderr", "1")
|
||||
if *stream {
|
||||
if *stream && container.State.Running {
|
||||
v.Set("stream", "1")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user