From d4e9bdb806c9bd2030d28fcd900dac4e99d6dd86 Mon Sep 17 00:00:00 2001 From: Oleg Tarassov Date: Mon, 11 Feb 2019 10:14:25 -0500 Subject: [PATCH] Added docker PATH volume, current directory volume and working directory to allow build to go through. (#155) --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 72342cc..21f0e4f 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,18 @@ or if you want to build your image then jump straight into analyzing it: dive build -t . ``` +Building on Macbook + +```bash +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 . +``` + Additionally you can run this in your CI pipeline to ensure you're keeping wasted space to a minimum (this skips the UI): ``` CI=true dive