浏览代码

Always disable containerd metrics when started by docker

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
Kenfe-Mickael Laventure 9 年之前
父节点
当前提交
42f9c25b51
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      libcontainerd/remote_linux.go

+ 2 - 2
libcontainerd/remote_linux.go

@@ -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 {