Skip to content

working with docker json

Mark Lilback edited this page Dec 1, 2016 · 1 revision

Add the following to your .bash_profile for each curl access to docker: alias dcurl="curl --unix-socket /var/run/docker.sock"

Save this gist as bbjson. It requires the cpan module Cpanel::JSON::XS. Then you can run dcurl http:/images/json | bbjson images and get the pretty-printed json in a new bbedit window.

Clone this wiki locally