You have a project in Azure DevOps named Project1. Project1 contains a pipeline that builds a container image named Image1 and pushes Image1 to an Azure container registry named ACR1. Image1 uses a base image stored in Docker Hub.
You need to ensure that Image1 is updated automatically whenever the base image is updated.
What should you do?
Click on the arrows to vote for the correct answer
A. B. C. D.C
ACR Tasks supports automated container image builds when a container's base image is updated, such as when you patch the OS or application framework in one of your base images.
https://docs.microsoft.com/en-us/azure/container-registry/container-registry-tutorial-base-image-updateTo automatically update Image1 in Azure Container Registry (ACR1) whenever its base image stored in Docker Hub is updated, you can use Docker Hub webhooks to trigger an Azure Pipeline that builds and pushes the updated Image1 to ACR1.
Here are the detailed steps to accomplish this:
Option B (Add a Docker Hub service connection to Azure Pipelines) is the correct answer, as it is the first step required to establish a connection to Docker Hub and allows Azure Pipeline to pull the base image from Docker Hub. Options A, C, and D are not correct, as they do not provide a direct solution to automatically update Image1 when its base image is updated in Docker Hub. Option A is related to events in the Azure Container Registry, which are not triggered by updates to images stored in Docker Hub. Option C is related to running tasks in ACR1, but it does not address the problem of updating Image1 automatically. Option D is a general option to set up a webhook for a project, but it does not address the specific scenario described in the question.