mirror of
https://github.com/clearlinux/docker.git
synced 2026-10-03 15:28:35 +00:00
Merge pull request #12312 from runcom/remove-job-container-stats
Remove job from container stats
This commit is contained in:
@@ -541,10 +541,10 @@ func getContainersStats(eng *engine.Engine, version version.Version, w http.Resp
|
||||
if vars == nil {
|
||||
return fmt.Errorf("Missing parameter")
|
||||
}
|
||||
name := vars["name"]
|
||||
job := eng.Job("container_stats", name)
|
||||
streamJSON(job, w, true)
|
||||
return job.Run()
|
||||
|
||||
d := getDaemon(eng)
|
||||
|
||||
return d.ContainerStats(vars["name"], utils.NewWriteFlusher(w))
|
||||
}
|
||||
|
||||
func getContainersLogs(eng *engine.Engine, version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error {
|
||||
|
||||
Reference in New Issue
Block a user