docker scout policy
Display the policy results of an image (experimental)
This command is experimental
Experimental features are intended for testing and feedback as their functionality or design may change between releases without warning or can be removed entirely in a future release.
Usage
docker scout policy [IMAGE | REPO]
Description
The docker scout policy
command displays the policy results of an image if there are any.
Options
Option | Short | Default | Description |
---|---|---|---|
--env | Name of the environment to compare to. | ||
--exit-code | -e | Return exit code '2' if policies are not met. | |
--org | Namespace of the Docker organization | ||
--output | -o | Write the report to a file. | |
--platform | Platform of image to pull policy results from. |
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
Early Access
Docker Scout secures the complete software supply chain by providing image analysis, real-time vulnerability identification, contextual remediation recommendations, and more. Now available in early access.
Learn more on the Docker Scout product pageopen_in_new.