mirror of
https://github.com/docker/docs.git
synced 2026-04-05 10:48:55 +07:00
1.2 KiB
1.2 KiB
docker scout policy
Display the policy results of an image (experimental)
Options
| Name | Type | Default | Description |
|---|---|---|---|
--env |
string |
Name of the environment to compare to. | |
-e, --exit-code |
Return exit code '2' if policies are not met. | ||
--org |
string |
Namespace of the Docker organization | |
-o, --output |
string |
Write the report to a file. | |
--platform |
string |
Platform of image to pull policy results from. |
Description
The docker scout policy command displays the policy results of an image if there are any.
Examples
Display the policy results of an image
$ docker scout policy dockerscoutpolicy/customers-api-service:0.0.1
Compare policy results for a repository in a specific environment
$ docker scout policy dockerscoutpolicy/customers-api-service --env production