Skip to content

Instantly share code, notes, and snippets.

@dustinbutterworth
Created September 9, 2020 20:48
Show Gist options
  • Save dustinbutterworth/6ab02a89917f41431d70136557e533f8 to your computer and use it in GitHub Desktop.
Save dustinbutterworth/6ab02a89917f41431d70136557e533f8 to your computer and use it in GitHub Desktop.
Loop Through Docker Images with Docker Inspect And jq
for f in $(sudo docker images -q) ; do sudo docker image inspect $f | jq '.[0].RepoTags[]' ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment