Home Explore Blog Models CI



docker

2nd chunk of `_vendor/github.com/docker/scout-cli/docs/scout_compare.md`
e114711e1a748460d5f4860d2d9d5d3f2d11b7853d65c89d00000001000009d7
| `--only-severity`     | `stringSlice` |         | Comma separated list of severities (critical, high, medium, low, unspecified) to filter CVEs by                                                                                |
| `--only-stage`        | `stringSlice` |         | Comma separated list of multi-stage Docker build stage names                                                                                                                   |
| `--only-unfixed`      |               |         | Filter to unfixed CVEs                                                                                                                                                         |
| `--org`               | `string`      |         | Namespace of the Docker organization                                                                                                                                           |
| `-o`, `--output`      | `string`      |         | Write the report to a file                                                                                                                                                     |
| `--platform`          | `string`      |         | Platform of image to analyze                                                                                                                                                   |
| `--ref`               | `string`      |         | Reference to use if the provided tarball contains multiple references.<br>Can only be used with archive                                                                        |
| `--to`                | `string`      |         | Image, directory, or archive to compare to                                                                                                                                     |
| `--to-env`            | `string`      |         | Name of environment to compare to                                                                                                                                              |
| `--to-latest`         |               |         | Latest image processed to compare to                                                                                                                                           |
| `--to-ref`            | `string`      |         | Reference to use if the provided tarball contains multiple references.<br>Can only be used with archive.                                                                       |

Title: Docker Scout Compare Command Options (Continued)
Summary
This section details additional options for the `docker scout compare` command, including filtering by CVE severity and Docker build stage, focusing on unfixed CVEs, specifying the Docker organization namespace, and writing the report to a file. It also allows specifying the platform of the image, handling tarballs with multiple references, and defining the source to compare against, including images, directories, archives, environments, and the latest processed image.