From 83b45b35013281c5f8db022c13c4a1d23baa2d1c Mon Sep 17 00:00:00 2001 From: Nate Jones Date: Thu, 30 Oct 2014 09:20:44 -0700 Subject: [PATCH] clarify and expand run examples --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index da81175..3571a98 100644 --- a/README.md +++ b/README.md @@ -64,7 +64,8 @@ Or as a tree in the terminal: When docker is listening on the TCP port: ``` -$ curl -s http://localhost:4243/images/json?all=1 | dockviz images --dot | dot -Tpng -o images.png +$ curl -s http://localhost:4243/images/json?all=1 | dockviz images --tree +$ curl -s http://localhost:4243/containers/json?all=1 | dockviz containers --dot | dot -Tpng -o containers.png ``` ## Socket @@ -72,7 +73,8 @@ $ curl -s http://localhost:4243/images/json?all=1 | dockviz images --dot | dot - When docker is listening on the socket: ``` -echo -e "GET /images/json?all=1 HTTP/1.0\r\n" | nc -U /var/run/docker.sock | tail -n +5 | dockviz images --tree +$ echo -e "GET /images/json?all=1 HTTP/1.0\r\n" | nc -U /var/run/docker.sock | tail -n +5 | dockviz images --tree +$ echo -e "GET /containers/json?all=1 HTTP/1.0\r\n" | nc -U /var/run/docker.sock | tail -n +5 | dockviz containers --dot | dot -Tpng -o containers.png ``` ## Direct from Docker