From f7db330ad274627a55c4e25ba4f4a5a0bede77f4 Mon Sep 17 00:00:00 2001 From: Dongjiang You Date: Tue, 20 Jun 2017 14:48:49 -0700 Subject: [PATCH] Add acr login --- docs/FAQ.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/FAQ.md b/docs/FAQ.md index 76d6086..02a4b8e 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -66,3 +66,20 @@ Your can find `myStorageAccount` to your registry by the following command ``` az acr show -n myRegistry --query storageAccount.name ``` + +## How to log into my registry when running the CLI in a container? + +You need to run the CLI container by mounting the Docker socket +``` +docker run -it -v /var/run/docker.sock:/var/run/docker.sock azuresdk/azure-cli-python +``` + +In the container, you can install `docker` by +``` +apk add docker +``` + +Then you can log into your registry by +``` +az acr login -n MyRegistry +```