From 26791cd5335d2fc974e80da2e85a789a376c8a2a Mon Sep 17 00:00:00 2001 From: Victor Marmol Date: Mon, 9 Jun 2014 17:23:03 -0700 Subject: [PATCH] Making the quick start commandline easier to read --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 51275155..49b728a3 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,14 @@ cAdvisor currently supports lmctfy containers as well as Docker containers (thos To quickly tryout cAdvisor on your machine with Docker (version 0.11 or above), we have a Docker image that includes everything you need to get started. Simply run: -`sudo docker run -v /var/run:/var/run:rw -v /sys/fs/cgroup/:/sys/fs/cgroup:ro -v /var/lib/docker/:/var/lib/docker:ro -p 0.0.0.0:8080:8080 monnand/cadvisor /usr/bin/cadvisor` +``` +sudo docker run \ + -v /var/run:/var/run:rw \ + -v /sys/fs/cgroup/:/sys/fs/cgroup:ro \ + -v /var/lib/docker/:/var/lib/docker:ro \ + -p 0.0.0.0:8080:8080 \ + monnand/cadvisor /usr/bin/cadvisor +``` cAdvisor is now running (in the foreground) on `http://localhost:8080`. The setup includes directories with Docker state cAdvisor needs to observe.