Always disable containerd metrics when started by docker

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Upstream-commit: 42f9c25b5168e3bc8e19003cd8bfd4eabbad654c
Component: engine
This commit is contained in:
Kenfe-Mickael Laventure
2016-04-19 13:37:18 -07:00
parent 121a98a71e
commit a950119eaf

View File

@ -349,9 +349,9 @@ func (r *remote) runContainerdDaemon() error {
}
// Start a new instance
args := []string{"-l", r.rpcAddr, "--runtime", "docker-runc"}
args := []string{"-l", r.rpcAddr, "--runtime", "docker-runc", "--metrics-interval=0"}
if r.debugLog {
args = append(args, "--debug", "--metrics-interval=0")
args = append(args, "--debug")
}
if len(r.runtimeArgs) > 0 {
for _, v := range r.runtimeArgs {