Parcourir la source

Merge pull request #22171 from mlaventure/always-disable-metrics

Always disable containerd metrics when started by docker
Sebastiaan van Stijn il y a 9 ans
Parent
commit
ccf83c94d1
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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 {