From 4a4471684f103a4f482e5da78026862210097457 Mon Sep 17 00:00:00 2001 From: jjqq Date: Fri, 17 Mar 2017 14:01:44 +0900 Subject: [PATCH] doc about error `Privileged mode is incompatible with user namespaces` and solution `--userns=host` --- docs/running.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/running.md b/docs/running.md index 6e98047841..b798c1c938 100644 --- a/docs/running.md +++ b/docs/running.md @@ -18,6 +18,10 @@ sudo docker run \ cAdvisor is now running (in the background) on `http://localhost:8080/`. The setup includes directories with Docker state cAdvisor needs to observe. +**Note**: If docker daemon is running with [user namespace enabled](https://docs.docker.com/engine/reference/commandline/dockerd/#starting-the-daemon-with-user-namespaces-enabled), +You need to add `--userns=host` option in order for cAdvisor to monitor Docker containers, +otherwise cAdvisor can not connect to docker daemon. + ## Latest Canary The latest cAdvisor canary release is continuously built from HEAD and available