Instructions for Getting Started

  1. 1

    Install Docker

    Before you can try out the Azure Container Registry, you should install Docker.

    Refer to the Mac or Windows or Linux getting started instructions for Docker.

  2. 2

    Run the "hello-world" base image

    The following command will get you a running container straight off Docker Hub.

    This should display "Hello from Docker!".

    1. docker run -it hello-world
  3. 3

    Login to your container registry

    Let's login to your container registry. You can get the login URI and credentials from Access keys blade.

    1. docker login myregistry.azurecr.io
  4. 4

    Push to your registry

    Let's first prefix the image with your registry login URI so that it can be pushed to your private registry.

    The first command tags the image for uploading to your registry and the second pushes the image.

    1. docker tag hello-world myregistry.azurecr.io/hello-world
    2. docker push myregistry.azurecr.io/hello-world
  5. 5

    Pull from your registry

    Let's try to pull the image from your registry. You should find that your image is up to date.

    1. docker pull myregistry.azurecr.io/hello-world
  6. And you're ready!

    You now have a working Azure Container Registry for your applications!

    To learn more about Azure Container Registry visit Azure Container Registry Documentation.