Skip to content

Instantly share code, notes, and snippets.

@leafnode
Created July 11, 2019 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leafnode/74991f93845fdbef36fda898d891c164 to your computer and use it in GitHub Desktop.
Save leafnode/74991f93845fdbef36fda898d891c164 to your computer and use it in GitHub Desktop.
Analyse docker image filesystem #docker #dive
#!/bin/sh
# change tag!
docker run --rm -it \
-v /usr/local/bin/docker:/bin/docker \
-v /var/run/docker.sock:/var/run/docker.sock \
-v "$(pwd)":"$(pwd)" \
-w "$(pwd)" \
-v "$HOME/.dive.yaml":"$HOME/.dive.yaml" \
wagoodman/dive:latest build -t $tag .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment