mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 15:37:50 -08:00
docs: fix missing 'image' subcommand (#3051)
This commit is contained in:
@@ -146,14 +146,14 @@ Example:
|
|||||||
=== "macOS"
|
=== "macOS"
|
||||||
|
|
||||||
``` bash
|
``` bash
|
||||||
docker run --rm -v $HOME/Library/Caches:/root/.cache/ aquasec/trivy:{{ git.tag[1:] }} image [YOUR_IMAGE_NAME
|
docker run --rm -v $HOME/Library/Caches:/root/.cache/ aquasec/trivy:{{ git.tag[1:] }} image [YOUR_IMAGE_NAME]
|
||||||
```
|
```
|
||||||
|
|
||||||
If you would like to scan the image on your host machine, you need to mount `docker.sock`.
|
If you would like to scan the image on your host machine, you need to mount `docker.sock`.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
|
docker run --rm -v /var/run/docker.sock:/var/run/docker.sock \
|
||||||
-v $HOME/Library/Caches:/root/.cache/ aquasec/trivy:{{ git.tag[1:] }} python:3.4-alpine
|
-v $HOME/Library/Caches:/root/.cache/ aquasec/trivy:{{ git.tag[1:] }} image python:3.4-alpine
|
||||||
```
|
```
|
||||||
|
|
||||||
Please re-pull latest `aquasec/trivy` if an error occurred.
|
Please re-pull latest `aquasec/trivy` if an error occurred.
|
||||||
|
|||||||
Reference in New Issue
Block a user