provide instructions on working with docker socket

closes #2
This commit is contained in:
Nate Jones 2014-10-30 08:59:00 -07:00
parent c9fca8053f
commit 93b0e0398d

View file

@ -59,12 +59,26 @@ Or as a tree in the terminal:
# Running # Running
Currently, this only works when the remote API is listening on TCP. Soon, the Docker command line will allow dumping the image JSON. ## TCP
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 --dot | dot -Tpng -o images.png
``` ```
## Socket
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
```
## Direct from Docker
Someday soon the Docker command line will allow dumping the image and container JSON directly.
# Download # Download
For now, download binaries from Gobuild: <http://gobuild.io/download/github.com/justone/dockviz> For now, download binaries from Gobuild: <http://gobuild.io/download/github.com/justone/dockviz>