Skip to content

Instantly share code, notes, and snippets.

@guitarrapc
Last active July 15, 2022 05:08
Show Gist options
  • Save guitarrapc/7b8778cdb843367a25fe2c6fcbb1f9c8 to your computer and use it in GitHub Desktop.
Save guitarrapc/7b8778cdb843367a25fe2c6fcbb1f9c8 to your computer and use it in GitHub Desktop.
ACR Task Run
# --ago 0d にすると経過0dイメージ = すべての過去のイメージを対象、となる
# --untagged は、イメージに紐づく manifest も削除する
# --dry-run は、実際に削除せずイメージ削除対象を羅列してシミュレーションしてくれる
PURGE_CMD="acr purge --filter 'samples/devimage1:.*' --filter 'samples/devimage2:.*' --ago 0d --untagged --dry-run"
az acr run --cmd "$PURGE_CMD" --registry myregistry /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment