From 2661a6beaa9353cc9b510b701c0774340a385a46 Mon Sep 17 00:00:00 2001 From: Rohit Jnagal Date: Tue, 23 Dec 2014 07:11:19 +0000 Subject: [PATCH] Add instructions for running cAdvisor on Boot2Docker. --- docs/running.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/running.md b/docs/running.md index b87b777c..63ca4fc5 100644 --- a/docs/running.md +++ b/docs/running.md @@ -18,6 +18,17 @@ 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. +## With Boot2Docker + +After booting up a boot2docker instance, run cAdvisor image with the same docker command mentioned above. cAdvisor can now be accessed at port 8080 of your boot2docker instance. The host IP can be found through DOCKER_HOST environment variable setup by boot2docker: + +``` +$ echo $DOCKER_HOST +tcp://192.168.59.103:2376 +``` + +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 \`.