You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/container-instances/container-instances-tutorial-prepare-acr.md
+18-13Lines changed: 18 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -35,13 +35,13 @@ To push a container image to a private registry like Azure Container Registry, y
35
35
36
36
First, get the full login server name for your Azure container registry. Run the following [az acr show][az-acr-show] command, and replace `<acrName>` with the name of registry you just created:
37
37
38
-
```azurecli
38
+
```azurecli-interactive
39
39
az acr show --name <acrName> --query loginServer --output table
40
40
```
41
41
42
42
For example, if your registry is named *mycontainerregistry082*:
43
43
44
-
```azurecli
44
+
```azurecli-interactive
45
45
az acr show --name mycontainerregistry082 --query loginServer --output table
46
46
```
47
47
@@ -59,8 +59,10 @@ docker images
59
59
60
60
Along with any other images you have on your machine, you should see the *aci-tutorial-app* image you built in the [previous tutorial](container-instances-tutorial-prepare-app.md):
61
61
62
-
```console
63
-
$ docker images
62
+
```bash
63
+
docker images
64
+
```
65
+
```output
64
66
REPOSITORY TAG IMAGE ID CREATED SIZE
65
67
aci-tutorial-app latest 5c745774dfa9 39 minutes ago 68.1 MB
66
68
```
@@ -73,8 +75,10 @@ docker tag aci-tutorial-app <acrLoginServer>/aci-tutorial-app:v1
73
75
74
76
Run `docker images` again to verify the tagging operation:
75
77
76
-
```console
77
-
$ docker images
78
+
```bash
79
+
docker images
80
+
```
81
+
```output
78
82
REPOSITORY TAG IMAGE ID CREATED SIZE
79
83
aci-tutorial-app latest 5c745774dfa9 39 minutes ago 68.1 MB
80
84
mycontainerregistry082.azurecr.io/aci-tutorial-app v1 5c745774dfa9 7 minutes ago 68.1 MB
To verify that the image you just pushed is indeed in your Azure container registry, list the images in your registry with the [az acr repository list][az-acr-repository-list] command. Replace `<acrName>` with the name of your container registry.
108
114
109
-
```azurecli
115
+
```azurecli-interactive
110
116
az acr repository list --name <acrName> --output table
111
117
```
112
118
113
119
For example:
114
120
115
-
```azurecli
121
+
```azurecli-interactive
116
122
az acr repository list --name mycontainerregistry082 --output table
117
123
```
118
124
@@ -124,14 +130,13 @@ aci-tutorial-app
124
130
125
131
To see the *tags* for a specific image, use the [az acr repository show-tags][az-acr-repository-show-tags] command.
126
132
127
-
```azurecli
133
+
```azurecli-interactive
128
134
az acr repository show-tags --name <acrName> --repository aci-tutorial-app --output table
0 commit comments