Browse Source

Only stream logs when container is running

Silas Sewell 11 years ago
parent
commit
3ddbb36a84
1 changed files with 1 additions and 1 deletions
  1. 1 1
      commands.go

+ 1 - 1
commands.go

@@ -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")
 	}