improve README with new docker run command

This commit is contained in:
Bill Wang 2021-03-20 21:34:10 +11:00
parent 64880972b0
commit b7d32324e6

View File

@ -12,6 +12,15 @@ To analyze a Docker image simply run dive with an image tag/id/digest:
dive <your-image-tag>
```
or you can dive with docker command directly
```
alias dive="docker run -ti --rm -v /var/run/docker.sock:/var/run/docker.sock wagoodman/dive"
dive <your-image-tag>
# for example
dive nginx:latest
```
or if you want to build your image then jump straight into analyzing it:
```bash
dive build -t <some-tag> .