diff --git a/api/client/commands.go b/api/client/commands.go index 8cb1b2847..a3dcffa73 100644 --- a/api/client/commands.go +++ b/api/client/commands.go @@ -882,7 +882,7 @@ func (cli *DockerCli) CmdInspect(args ...string) error { // Remove trailing ',' indented.Truncate(indented.Len() - 1) } - indented.WriteByte(']') + indented.WriteString("]\n") if tmpl == nil { if _, err := io.Copy(cli.out, indented); err != nil {