Azure Docker registry

How to use the Azure Docker Registry in Codefresh

To configure the Azure Docker registry within Codefresh, go into its settings in Azure Portal and select Access Keys from the left sidebar.

Docker credentials for the Azure registry

Docker credentials for the Azure registry

Click the enable button on the “Admin user” section. Change the username (optional) and make sure that you note down one of the passwords shown on the screen.

Then in the integration page in Codefresh, select Other Registries from the new registry drop down and then provide the following

  • Registry Name - A unique name for this configuration
  • Username - Your Azure Registry username
  • Password - Your Azure Registry password
  • Domain - <registry_name>.azure.io

Adding the Azure Docker registry

Adding the Azure Docker registry

Click the Test button to verify the settings and then the Save button to apply the changes.

Using the Azure Registry

You can now use the Azure Registry in the pipelines either via the GUI or with the by the YAML push step (recommended).

It is also possible to use the registry from the command line with

docker login <registry_name>.azure.io -u <user_name> -p<password>

You can also inspect the pushed images either using Azure portal or with Azure CLI

az acr repository list --name <registry_name> --output table