Skip to content

Instantly share code, notes, and snippets.

@fahadsiddiqui
Last active September 1, 2021 18:33
Show Gist options
  • Save fahadsiddiqui/ad2076e024de0ffabfb475b741da9b7b to your computer and use it in GitHub Desktop.
Save fahadsiddiqui/ad2076e024de0ffabfb475b741da9b7b to your computer and use it in GitHub Desktop.
Program details docker handy commands.

Format out of Json using docker inspect

docker ps -q | xargs docker inspect --format '{{ .Id }} - {{ .Name }} - {{ .NetworkSettings.IPAddress }}'

Format docker ps

docker ps --format="{{.Names}}\t{{.ID}}\t{{.Ports}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment