Skip to content

Instantly share code, notes, and snippets.

@stefanopulze
Last active July 20, 2021 07:58
Show Gist options
  • Save stefanopulze/32509531478d35f67a81bdc8cff14106 to your computer and use it in GitHub Desktop.
Save stefanopulze/32509531478d35f67a81bdc8cff14106 to your computer and use it in GitHub Desktop.
Docker 101
# Remove all dangling images
docker rmi $(docker images -f "dangling=true" -q)
# Filter by tag
docker images -f "author=stefano"
# List docker volume files
docker run --rm -i -v=vol-name:/tmp/myvolume busybox find /tmp/myvolume
# Show docker images sha256
docker inspect --format='{{index .RepoDigests 0}}' $IMAGE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment