Skip to content

Commit

Permalink
Also fix wrong flag in image docs
Browse files Browse the repository at this point in the history
  • Loading branch information
another-rex committed Jan 30, 2025
1 parent 5faf105 commit c672bf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/scan-image.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ You can scan container images using two primary methods:

- **How it works:** OSV-Scanner uses `docker save` to export the image to a temporary archive, which is then analyzed. No container code is executed during the scan.

2. **Scan from Exported Image Archive:** If you have already exported your container image as a Docker archive (`.tar` file), you can scan it directly using the `--local` flag. This method does not require Docker to be installed.
2. **Scan from Exported Image Archive:** If you have already exported your container image as a Docker archive (`.tar` file), you can scan it directly using the `--archive` flag. This method does not require Docker to be installed.

```bash
osv-scanner scan image --local ./path/to/my-image.tar
osv-scanner scan image --archive ./path/to/my-image.tar
```

- **How to create an image archive:** You can create an image archive using the following commands:
Expand Down

0 comments on commit c672bf9

Please sign in to comment.