How to use Azure Pipeline to "Push" a docker image to Azure Container Registry?

Published

Here is my scenario/usecase:

Pull a docker image from docker hub and push it to Azure Container Registry. Note, I do not have to build the docker image

I am following this documentation but some things are not clear

https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/containers/push-image?view=azure-devops#azure-container-registry

Here is the azure pipeline yaml snippet

- task: [email protected]
  displayName: Push image
  inputs:
    containerRegistry: |
      $(dockerHub)
    repository: $(imageName)
    command: push
    tags: |
      test1
      test2

What i don’t understand is, where is the link between Azure Container Registry and Docker Hub such that it satisfies the link between source and destination?

Could someone please clarify and provide me a working yaml snippet to get my job done?

thanks!

Source: Docker Questions

Answers

Leave a Reply

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq