Add docs for artifactory agent backfill mode

This commit is contained in:
Jonny Stoten 2023-04-14 10:58:00 +01:00
parent f0b643fb26
commit 112c6d704e
No known key found for this signature in database
GPG Key ID: 1A4DE8FCC4873A60
1 changed files with 21 additions and 0 deletions

View File

@ -160,6 +160,27 @@ $ docker run \
docker/artifactory-agent:v1
```
#### Analyzing pre-existing data
By default the agent will detect and analyze images as they're created and
updated. If you would like to use the agent to analyze pre-existing images, you
can use backfill mode. Use the `--backfill-from=TIME` command line argument,
where `TIME` is an ISO 8601 formatted time, to run the agent in backfill mode.
If this argument is given, the agent analyzes all images pushed between that
time and the current time when the agent starts, then exits.
For example:
```console
$ docker run \
--mount type=bind,src=/var/opt/artifactory-agent,target=/opt/artifactory-agent/data \
docker/artifactory-agent:v1 --backfill-from=2022-04-10T10:00:00Z
```
When running a backfill multiple times, the agent won't analyze images that
were already analyzed. To force re-analysis, provide the `--force` command
line argument.
### View analysis results
You can view the image analysis results in the Docker Scout web UI.