Skip to content

Commit 63f640b

Browse files
Merge pull request #236770 from msaenzbosupport/patch-28
[Doc-A-thon]Updating code block
2 parents 3e3ee37 + a0ef4da commit 63f640b

File tree

1 file changed

+18
-13
lines changed

1 file changed

+18
-13
lines changed

articles/container-instances/container-instances-tutorial-prepare-acr.md

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ To push a container image to a private registry like Azure Container Registry, y
3535

3636
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:
3737

38-
```azurecli
38+
```azurecli-interactive
3939
az acr show --name <acrName> --query loginServer --output table
4040
```
4141

4242
For example, if your registry is named *mycontainerregistry082*:
4343

44-
```azurecli
44+
```azurecli-interactive
4545
az acr show --name mycontainerregistry082 --query loginServer --output table
4646
```
4747

@@ -59,8 +59,10 @@ docker images
5959

6060
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):
6161

62-
```console
63-
$ docker images
62+
```bash
63+
docker images
64+
```
65+
```output
6466
REPOSITORY TAG IMAGE ID CREATED SIZE
6567
aci-tutorial-app latest 5c745774dfa9 39 minutes ago 68.1 MB
6668
```
@@ -73,8 +75,10 @@ docker tag aci-tutorial-app <acrLoginServer>/aci-tutorial-app:v1
7375

7476
Run `docker images` again to verify the tagging operation:
7577

76-
```console
77-
$ docker images
78+
```bash
79+
docker images
80+
```
81+
```output
7882
REPOSITORY TAG IMAGE ID CREATED SIZE
7983
aci-tutorial-app latest 5c745774dfa9 39 minutes ago 68.1 MB
8084
mycontainerregistry082.azurecr.io/aci-tutorial-app v1 5c745774dfa9 7 minutes ago 68.1 MB
@@ -90,8 +94,10 @@ docker push <acrLoginServer>/aci-tutorial-app:v1
9094

9195
The `push` operation should take a few seconds to a few minutes depending on your internet connection, and output is similar to the following:
9296

93-
```console
94-
$ docker push mycontainerregistry082.azurecr.io/aci-tutorial-app:v1
97+
```bash
98+
docker push mycontainerregistry082.azurecr.io/aci-tutorial-app:v1
99+
```
100+
```output
95101
The push refers to a repository [mycontainerregistry082.azurecr.io/aci-tutorial-app]
96102
3db9cac20d49: Pushed
97103
13f653351004: Pushed
@@ -106,13 +112,13 @@ v1: digest: sha256:ed67fff971da47175856505585dcd92d1270c3b37543e8afd46014d328f05
106112

107113
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.
108114

109-
```azurecli
115+
```azurecli-interactive
110116
az acr repository list --name <acrName> --output table
111117
```
112118

113119
For example:
114120

115-
```azurecli
121+
```azurecli-interactive
116122
az acr repository list --name mycontainerregistry082 --output table
117123
```
118124

@@ -124,14 +130,13 @@ aci-tutorial-app
124130

125131
To see the *tags* for a specific image, use the [az acr repository show-tags][az-acr-repository-show-tags] command.
126132

127-
```azurecli
133+
```azurecli-interactive
128134
az acr repository show-tags --name <acrName> --repository aci-tutorial-app --output table
129135
```
130136

131137
You should see output similar to the following:
132138

133-
```console
134-
Result
139+
```output
135140
--------
136141
v1
137142
```

0 commit comments

Comments
 (0)