Browse code

Always disable containerd metrics when started by docker

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>

Kenfe-Mickael Laventure authored on 2016/04/20 05:37:18
Showing 1 changed files
... ...
@@ -349,9 +349,9 @@ func (r *remote) runContainerdDaemon() error {
349 349
 	}
350 350
 
351 351
 	// Start a new instance
352
-	args := []string{"-l", r.rpcAddr, "--runtime", "docker-runc"}
352
+	args := []string{"-l", r.rpcAddr, "--runtime", "docker-runc", "--metrics-interval=0"}
353 353
 	if r.debugLog {
354
-		args = append(args, "--debug", "--metrics-interval=0")
354
+		args = append(args, "--debug")
355 355
 	}
356 356
 	if len(r.runtimeArgs) > 0 {
357 357
 		for _, v := range r.runtimeArgs {