Azure Container Registry

Azure Container Registry

Azure Container Registry

  • Login to Azure Cloud
az login
  • Create a Resource Group
az group create --name myResourceGroup --location eastus
  • Create a container registry
az acr create --resource-group myResourceGroup --name mycontainerregistry --sku Basic
  • Push image to registry
docker pull mcr.microsoft.com/hello-world
  • Tag the image using the docker tag
docker tag mcr.microsoft.com/hello-world <login-server>/hello-world:v1
  • Source
https://learn.microsoft.com/en-us/azure/container-registry/container-registry-get-started-azure-cli

Instructions for Getting Started

  • Install Docker
  • Run the “hello-world” base image
docker run -it hello-world
  • Login to your container registry
docker login mycontainerregistry001neq.azurecr.io
  • Push to your registry
docker tag hello-world mycontainerregistry001neq.azurecr.io/hello-world
docker push mycontainerregistry001neq.azurecr.io/hello-world
  • Pull from your registry
docker pull mycontainerregistry001neq.azurecr.io/hello-world
  • if you get permission denied error execute the below permission.
sudo chmod 666 /var/run/docker.sock