Skip to content

Commit

Permalink
Update container purge docs (microsoft#871)
Browse files Browse the repository at this point in the history
# Pull Request

## Title

Updates some documentation on the `acr purge` task used to keep storage
retention reasonable for devcontainer images.

---
  • Loading branch information
bpkroth authored Oct 14, 2024
1 parent 610341c commit ed7a614
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To save space in the ACR, we purge images older than 7 days.
```sh
#DRY_RUN_ARGS='--dry-run'

PURGE_CMD="acr purge --filter 'devcontainer-cli:.*' --filter 'mlos-devcontainer:.*' --untagged --ago 7d $DRY_RUN_ARGS"
PURGE_CMD="acr purge --filter 'devcontainer-cli:.*' --filter 'mlos-devcontainer:.*' --untagged --ago 30d --keep 3 $DRY_RUN_ARGS"

# Setup a daily task:
az acr task create --name dailyPurgeTask --cmd "$PURGE_CMD" --registry mloscore --schedule "0 1 * * *" --context /dev/null
Expand Down

0 comments on commit ed7a614

Please sign in to comment.