Skip to content

Instantly share code, notes, and snippets.

@matheusneder
Last active September 21, 2018 12:42
Show Gist options
  • Save matheusneder/db8d39d0687f4f92afe6136dbcd66859 to your computer and use it in GitHub Desktop.
Save matheusneder/db8d39d0687f4f92afe6136dbcd66859 to your computer and use it in GitHub Desktop.
# usage: kubectl get pod THE_POD_NAME -json | dockerinfo
alias dockerinfo="jq '{ name: .metadata.name, nodeName: .spec.nodeName, containers: [ .status.containerStatuses[] | { image: .image, containerID: .containerID } ]}'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment