Skip to content

Instantly share code, notes, and snippets.

@frjaraur
Created September 26, 2017 15:12
Show Gist options
  • Save frjaraur/535a602570a4a2002c1552fbf30200f4 to your computer and use it in GitHub Desktop.
Save frjaraur/535a602570a4a2002c1552fbf30200f4 to your computer and use it in GitHub Desktop.
Docker Stats
for I in $(curl --unix-socket /var/run/docker.sock -sS http://localhost/containers/json|jq '.[].Id'|cut -d '"' -f2 );do curl --unix-socket /var/run/docker.sock -sS http://localhost/containers/${I}/stats?stream=false;done
curl --unix-socket /var/run/docker.sock -sS http://localhost/containers/json|jq '.[].Names'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment