Merge pull request #10766 from cpuguy83/stats_pull_once

Allow pulling stats once and disconnecting.
This commit is contained in:
Tibor Vass
2015-05-04 22:28:01 -07:00
11 changed files with 83 additions and 10 deletions
+1 -1
View File
@@ -581,7 +581,7 @@ func (s *Server) getContainersStats(version version.Version, w http.ResponseWrit
return fmt.Errorf("Missing parameter")
}
return s.daemon.ContainerStats(vars["name"], utils.NewWriteFlusher(w))
return s.daemon.ContainerStats(vars["name"], boolValue(r, "stream"), utils.NewWriteFlusher(w))
}
func (s *Server) getContainersLogs(version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error {