Evaluate policies against an image and display the policy evaluation results (experimental)
Name | Type | Default | Description |
---|---|---|---|
-e , --exit-code |
Return exit code '2' if policies are not met, '0' otherwise | ||
--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 | |
--to-env |
string |
Name of the environment to compare to | |
--to-latest |
Latest image processed to compare to |
The docker scout policy
command evaluates policies against an image.
The image analysis is uploaded to Docker Scout where policies get evaluated.
The policy evaluation results may take a few minutes to become available.
$ docker scout policy dockerscoutpolicy/customers-api-service:0.0.1
$ docker scout policy dockerscoutpolicy/customers-api-service:0.0.1 --org dockerscoutpolicy
$ docker scout policy dockerscoutpolicy/customers-api-service:0.0.1 --platform linux/amd64
$ docker scout policy dockerscoutpolicy/customers-api-service --to-env production