docker scout watch
| Description | Watch repositories in a registry and push images and indexes to Docker Scout |
|---|---|
| Usage | docker scout watch |
Description
The docker scout watch command watches repositories in a registry and pushes images or image indexes to Docker Scout.
Options
| Option | Default | Description |
|---|---|---|
--all-images
|
Push all images instead of only the ones pushed during the watch command is running |
|
--dry-run
|
Watch images and prepare them, but do not push them | |
--interval
|
60
|
Interval in seconds between checks |
--org
|
Namespace of the Docker organization to which image will be pushed | |
--refresh-registry
|
Refresh the list of repositories of a registry at every run. Only with --registry. |
|
--registry
|
Registry to watch | |
--repository
|
Repository to watch | |
--sbom
|
true
|
Create and upload SBOMs |
--tag
|
Regular expression to match tags to watch | |
--workers
|
3
|
Number of concurrent workers |
Examples
Watch for new images from two repositories and push them $ docker scout watch --org my-org --repository registry-1.example.com/repo-1 --repository registry-2.example.com/repo-2[0m
Only push images with a specific tag $ docker scout watch --org my-org --repository registry.example.com/my-service --tag latest[0m
Watch all repositories of a registry $ docker scout watch --org my-org --registry registry.example.com[0m
Push all images and not just the new ones $ docker scout watch --org my-org --repository registry.example.com/my-service --all-images[0m