Merge pull request #344 from ozbillwang/master

improve README with new docker run command
This commit is contained in:
Alex Goodman 2023-07-06 10:37:16 -04:00 committed by GitHub
commit 2db0aaa920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,6 +13,15 @@ To analyze a Docker image simply run dive with an image tag/id/digest:
dive <your-image-tag> 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: or if you want to build your image then jump straight into analyzing it:
```bash ```bash
dive build -t <some-tag> . dive build -t <some-tag> .