Skip to content

Instantly share code, notes, and snippets.

@alexandreelise
Created March 12, 2025 14:23
Show Gist options
  • Save alexandreelise/d2d2fd4892f35d052fbaa2a50c4ee316 to your computer and use it in GitHub Desktop.
Save alexandreelise/d2d2fd4892f35d052fbaa2a50c4ee316 to your computer and use it in GitHub Desktop.
How to create a diff of Docker images on Unix Systems (It might work for Windows too)
#!/bin/bash
set -eux
diff -u <(docker image history yourrepo/yourimage1:yourtag) <(docker image history yourrepo/yourimage2:yourtag)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment