Skip to content

Instantly share code, notes, and snippets.

@hisplan
Created March 2, 2017 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hisplan/fce9064af0a89131ca33bb72ea53b0b2 to your computer and use it in GitHub Desktop.
Save hisplan/fce9064af0a89131ca33bb72ea53b0b2 to your computer and use it in GitHub Desktop.
parse docker label
sudo docker inspect bwa | python -c "import json; import sys; j=json.loads(sys.stdin.read()); print j[0]['Config']['Labels']"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment