Add example using Docker image without volume

This commit is contained in:
Remi Rampin 2016-05-25 12:18:35 -04:00
parent 861a7e02b6
commit ad9654ce57

View file

@ -156,6 +156,8 @@ $ 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 $ curl -s http://localhost:4243/containers/json?all=1 | dockviz containers --dot | dot -Tpng -o containers.png
$ echo -e "GET /images/json?all=1 HTTP/1.0\r\n" | nc -U /var/run/docker.sock | sed '1,/^$/d' | dockviz images --tree $ echo -e "GET /images/json?all=1 HTTP/1.0\r\n" | nc -U /var/run/docker.sock | sed '1,/^$/d' | dockviz images --tree
$ echo -e "GET /containers/json?all=1 HTTP/1.0\r\n" | nc -U /var/run/docker.sock | sed '1,/^$/d' | dockviz containers --dot | dot -Tpng -o containers.png $ echo -e "GET /containers/json?all=1 HTTP/1.0\r\n" | nc -U /var/run/docker.sock | sed '1,/^$/d' | dockviz containers --dot | dot -Tpng -o containers.png
$ echo -e "GET /images/json?all=1 HTTP/1.0\r\n" | nc -U /var/run/docker.sock | sed '1,/^$/d' | docker run -i nate/dockviz images --tree
$ echo -e "GET /containers/json?all=1 HTTP/1.0\r\n" | nc -U /var/run/docker.sock | sed '1,/^$/d' | docker run -i nate/dockviz containers --dot | dot -Tpng -o containers.png
``` ```
Note: GNU netcat doesn't support `-U` (UNIX socket) flag, so OpenBSD variant can be used. Note: GNU netcat doesn't support `-U` (UNIX socket) flag, so OpenBSD variant can be used.