This is a wrapper for Docker Credential helpers created by Azure Container Registry (ACR) team. This tool allows Azure Active Directory (AAD) based login
Перейти к файлу
microsoft-github-policy-service[bot] 958a9c7398
Auto merge mandatory file pr
This pr is auto merged as it contains a mandatory file and is opened for more than 10 days.
2023-05-31 18:49:17 +00:00
build Setting user agent to outbound calls (#27) 2017-07-07 16:12:35 -07:00
install install script warning 2017-06-28 14:26:40 -07:00
src Setting user agent to outbound calls (#27) 2017-07-07 16:12:35 -07:00
.gitignore OneBuild - one build to release them all (#7) 2017-06-14 17:38:50 -07:00
CONTRIBUTING.md Updated readme to contributing 2017-06-01 13:01:00 -07:00
Dockerfile Build and package binaries on docker (#9) 2017-06-16 10:43:26 -07:00
LICENSE Initial commit 2017-05-31 18:01:15 -07:00
Makefile Trim out dogfood constants. Comment out currently unused device login codes (#17) 2017-06-22 09:12:45 -07:00
README.md Update README.md 2022-03-29 10:26:03 -07:00
SECURITY.md Microsoft mandatory file 2023-01-27 21:02:34 +00:00
build.sh Build and package binaries on docker (#9) 2017-06-16 10:43:26 -07:00

README.md

ACR Docker Credential Helper

⚠️ Deprecation notice
acr-docker-crential-helper is deprecated without replacement. Consider using other authentication methods.

The ACR Docker Credential Helper allows users to sign-in to the Azure Container Registry service using their Azure Active Directory (AAD) credentials. This credential helper is in charge of ensuring that the stored credentials are valid, and when required it also renews the credentials for a repository.

For now, this credential helper works in tandem with the Azure CLI, which is required in order to initiate the credential flow. Once you've successfully logged in to your container registry with the Azure CLI, the credential helper administers the life cycle of your locally stored credential.

Prerequisites

Installation

For Windows, run the powershell installation script in administrator mode:

iex ([System.Text.Encoding]::UTF8.GetString((Invoke-WebRequest -Uri https://aka.ms/acr/installaad/win).Content))

For Linux and macOS, run the bash installation script:

curl -L https://aka.ms/acr/installaad/bash | /bin/bash

Usage

After installing the ACR Docker Credential Helper, login to an Azure Container Registry using the Azure CLI:

az acr login -n <registry name>

After that, you will be able to use docker normally. This credential helper will help maintaining your credentials.

Developer Guide:

To manually build and launch this credential helper:

  • Invoke build.sh to build and launch a docker container and perform a cross-platform build.
  • Find the appropriate docker-credential-acr-<osname>-<arch> archive in the artifacts directory. Extract the appropriate archive for your os and place the docker-credential-acr-<osname> executable file to any directory under your PATH.
  • Add the following entry to your docker config.json
    {
        "credsStore": "acr-<osname>"
    }
    

Troubleshooting

Getting 401 (authentication required)

If you have not called az acr login -n <registry> to log in to your registry for an extended period of time and you get a 401 error, please log in again. If you find yourself having to log in every hour or so, make sure your computer clock is set to the correct time.