Added docker PATH volume, current directory volume and working directory to allow build to go through. (#155)

This commit is contained in:
Oleg Tarassov 2019-02-11 10:14:25 -05:00 committed by Alex Goodman
parent 91d3721737
commit d4e9bdb806

View File

@ -16,6 +16,18 @@ or if you want to build your image then jump straight into analyzing it:
dive build -t <some-tag> .
```
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 <some-tag> .
```
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 <your-image>