From 41ba594f82e61aa90e7d05ad2208aac15fba16a2 Mon Sep 17 00:00:00 2001 From: Victor Marmol Date: Thu, 7 May 2015 09:29:47 -0700 Subject: [PATCH] Document that cAdvisor needs --privilege in RHEL/CentOS Fixes #379 --- docs/running.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/running.md b/docs/running.md index 230e3021..c10306c9 100644 --- a/docs/running.md +++ b/docs/running.md @@ -31,7 +31,11 @@ In this case, cAdvisor UI should be accessible on `http://192.168.59.103:8080` ### CentOS and RHEL -On CentOS and RHEL the cgroup hierarchies are mounted in `/cgroup` so run cAdvisor with an additional Docker option of `--volume=/cgroup:/cgroup \`. +You may need to run the container with `--privilege` and `--volume=/cgroup:/cgroup \` in order for cAdvisor to monitor Docker containers. + +RHEL and CentOS lock down their containers a bit more. cAdvisor needs access to the Docker daemon through its socket. This requires `--privilege` in RHEL and CentOS. + +On some versions of RHEL and CentOS the cgroup hierarchies are mounted in `/cgroup` so run cAdvisor with an additional Docker option of `--volume=/cgroup:/cgroup \`. ## Debian