docker-credential-acr-helper
A credential helper for the Docker daemon
that makes it easier to use Alibaba Cloud Container Registry.
Installation
Download the latest release from Releases page.
Configuration
Credentials
If the ALIBABA_CLOUD_ACCESS_KEY_ID and ALIBABA_CLOUD_ACCESS_KEY_SECRET environment variables
are defined and are not empty, the program will use them to create the default credential.
If not, the program loads and looks for the client in the configuration file(~/.alibabacloud/credentials).
For more information about configuring credentials, see Provider.
Docker
Place the docker-credential-acr-helper binary on your PATH and set the contents of your
~/.docker/config.json file to be:
{
"credHelpers": {
"registry.cn-beijing.aliyuncs.com": "acr-helper",
"registry-intl.ap-southeast-1.aliyuncs.com": "acr-helper",
"registry.<region>.aliyuncs.com": "acr-helper",
"<acr-ee-instance-name>-registry.<region>.cr.aliyuncs.com": "acr-helper"
}
}
For more information about configuring Docker,
see Credential helpers in Docker Documentation.