From 3ddbb36a84d5530b1f6b496ff8d79ade6f539267 Mon Sep 17 00:00:00 2001 From: Silas Sewell Date: Tue, 3 Dec 2013 07:17:07 +0000 Subject: [PATCH] Only stream logs when container is running --- commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.go b/commands.go index f2377d8da8..699be1e4cf 100644 --- a/commands.go +++ b/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") }