Skip to content

Commit

Permalink
[aci container registry] - fix jmespath query
Browse files Browse the repository at this point in the history
it needed quotes or it errored out for me in the CLI
  • Loading branch information
johnpapa authored Aug 3, 2017
1 parent 53c09b1 commit 9a5a493
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Throughout the rest of this tutorial, we use `<acrname>` as a placeholder for th

## Get Azure Container Registry information

Once the container registry is created, you can query its login server and password. The following code returns these values. Note each value down, they are referenced throughout this tutorial.
Once the container registry is created, you can query its login server and password. The following code returns these values. Note each value for login server and password, as they are referenced throughout this tutorial.

Container registry login server (update with your registry name):

Expand All @@ -69,14 +69,14 @@ Throughout the rest of this tutorial, we use `<acrLoginServer>` as a placeholder
Container registry password:

```azurecli
az acr credential show --name <acrName> --query passwords[0].value
az acr credential show --name <acrName> --query "passwords[0].value"
```

Throughout the rest of this tutorial, we use `<acrPassword>` as a placeholder for the container registry password value.

## Login to the container registry

You must login to your container registry instance before pushing images to it. Use the [docker login](https://docs.docker.com/engine/reference/commandline/login/) command to complete the operation. When running docker login, you need to provide th registry login server name and credentials.
You must login to your container registry instance before pushing images to it. Use the [docker login](https://docs.docker.com/engine/reference/commandline/login/) command to complete the operation. When running docker login, you need to provide the registry login server name and credentials.

```bash
docker login --username=<acrName> --password=<acrPassword> <acrLoginServer>
Expand All @@ -86,7 +86,7 @@ The command returns a 'Login Succeeded’ message once completed.

## Tag container image

In order to deploy a container image from a private registry, the image needs to be tagged with the `loginServer` name of the registry.
To deploy a container image from a private registry, the image needs to be tagged with the `loginServer` name of the registry.

To see a list of current images, use the `docker images` command.

Expand Down Expand Up @@ -173,4 +173,4 @@ In this tutorial, an Azure Container Registry was prepared for use with Azure Co
Advance to the next tutorial to learn about deploying the container to Azure using Azure Container Instances.

> [!div class="nextstepaction"]
> [Deploy containers to Azure Container Instances](./container-instances-tutorial-deploy-app.md)
> [Deploy containers to Azure Container Instances](./container-instances-tutorial-deploy-app.md)

0 comments on commit 9a5a493

Please sign in to comment.