Merge pull request #10568 from LK4D4/logging_drivers

Logging drivers
This commit is contained in:
Arnaud Porterie
2015-03-17 09:45:58 -07:00
23 changed files with 615 additions and 50 deletions
+4
View File
@@ -1961,6 +1961,10 @@ func (cli *DockerCli) CmdLogs(args ...string) error {
return err
}
if env.GetSubEnv("HostConfig").GetSubEnv("LogConfig").Get("Type") != "json-file" {
return fmt.Errorf("\"logs\" command is supported only for \"json-file\" logging driver")
}
v := url.Values{}
v.Set("stdout", "1")
v.Set("stderr", "1")