I wanted to try docker API without binding it on a TCP socket. Curl doesn't work on UNIX socket, so I've developped that:
go get github.com/Soulou/curl-unix-socket
./curl-unix-socket unix:///var/run/docker.sock:/v1.6/images/json
-X
: HTTP Verb [GET|POST|DELETE|...]-d
: Request data-H
: Additional Headers- Example:
-H 'Accept: application/json|Content-type: application/json'
- Example:
-b
: Add Cookie- Example:
-b 'Key=Value|Key2=Value2'
- Example:
-v
: Verbose