From 9e7ce0dbf64b90b5e1a7f9c68e1e12778139e325 Mon Sep 17 00:00:00 2001 From: Marcus Furlong Date: Fri, 8 May 2015 11:12:12 +1000 Subject: [PATCH] update documentation for CentOS 7 1) cgroups were getting mounted at /cgroup: not /cgroup 2) incorrect flag was used: provided but not defined: --privilege See 'docker run --help'. --- docs/running.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/running.md b/docs/running.md index c10306c9..1780c50a 100644 --- a/docs/running.md +++ b/docs/running.md @@ -31,11 +31,11 @@ In this case, cAdvisor UI should be accessible on `http://192.168.59.103:8080` ### CentOS and RHEL -You may need to run the container with `--privilege` and `--volume=/cgroup:/cgroup \` in order for cAdvisor to monitor Docker containers. +You may need to run the container with `--privileged=true` and `--volume=/cgroup:/cgroup:ro \` 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. +RHEL and CentOS lock down their containers a bit more. cAdvisor needs access to the Docker daemon through its socket. This requires `--privileged=true` 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 \`. +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:ro \`. ## Debian