@@ -7,7 +7,7 @@ manager: gwallace
7
7
8
8
ms.service : container-registry
9
9
ms.topic : article
10
- ms.date : 08/13 /2019
10
+ ms.date : 08/14 /2019
11
11
ms.author : danlep
12
12
---
13
13
@@ -58,7 +58,7 @@ The following example uses the [az acr run][az-acr-run] command to run the `purg
58
58
``` azurecli
59
59
# Environment variable for container command line
60
60
PURGE_CMD="mcr.microsoft.com/acr/acr-cli:0.1 purge \
61
- --registry {{.Run.Registry}} --filter \" hello-world:.*\" --untagged --ago 1d"
61
+ --registry {{.Run.Registry}} --filter ' hello-world:.*' --untagged --ago 1d"
62
62
63
63
az acr run \
64
64
--cmd "$PURGE_CMD" \
@@ -73,7 +73,7 @@ The following example uses the [az acr task create][az-acr-task-create] command
73
73
``` azurecli
74
74
# Environment variable for container command line
75
75
PURGE_CMD="mcr.microsoft.com/acr/acr-cli:0.1 purge \
76
- --registry {{.Run.Registry}} --filter \" hello-world:.*\" --ago 7d"
76
+ --registry {{.Run.Registry}} --filter ' hello-world:.*' --ago 7d"
77
77
78
78
az acr task create --name purgeTask \
79
79
--cmd "$PURGE_CMD" \
@@ -93,7 +93,7 @@ For example, the following on-demand task sets a timeout time of 3600 seconds (1
93
93
``` azurecli
94
94
# Environment variable for container command line
95
95
PURGE_CMD="mcr.microsoft.com/acr/acr-cli:0.1 purge \
96
- --registry {{.Run.Registry}} --filter \" hello-world:.*\" --untagged -- ago 1d"
96
+ --registry {{.Run.Registry}} --filter ' hello-world:.*' --ago 1d --untagged "
97
97
98
98
az acr run \
99
99
--cmd "$PURGE_CMD" \
@@ -116,7 +116,7 @@ In the following example, the filter in each repository selects all tags. The `-
116
116
# Environment variable for container command line
117
117
PURGE_CMD="mcr.microsoft.com/acr/acr-cli:0.1 purge \
118
118
--registry {{.Run.Registry}} \
119
- --filter \" samples/devimage1:.*\" --filter \" samples/devimage2:.*\" \
119
+ --filter ' samples/devimage1:.*' --filter ' samples/devimage2:.*' \
120
120
--ago 0d --untagged --dry-run"
121
121
122
122
az acr run \
@@ -157,7 +157,7 @@ After you've verified the dry run, create a scheduled task to automate the purge
157
157
# Environment variable for container command line
158
158
PURGE_CMD="mcr.microsoft.com/acr/acr-cli:0.1 purge \
159
159
--registry {{.Run.Registry}} \
160
- --filter \" samples/devimage1:.*\" --filter \" samples/devimage2:.*\" \
160
+ --filter ' samples/devimage1:.*' --filter ' samples/devimage2:.*' \
161
161
--ago 0d --untagged --dry-run"
162
162
163
163
az acr task create --name weeklyPurgeTask \
0 commit comments