A developer's managed laptop has the Azure CLI but can't run a Docker engine. The developer needs to build the Dockerfile in the current folder and push the result to the registry contosoacr as web:v1. Which command should the developer run?
Choose one.
az acr build runs a quick task: cloud build and push from a local or Git context.
ACR Tasks quick tasks move docker build into Azure. az acr build packs the current folder, sends it to the registry's task runner, builds it and pushes the tagged image to that registry. Import needs an existing image, docker build needs a local engine, and az acr run with --cmd runs a container rather than building one.
- Note the constraint: no local Docker engine.
- Identify the action: build from a Dockerfile, then push.
- Choose the ACR Tasks quick-task command.
Exam tip: No Docker locally? az acr build builds and pushes in the cloud.
AI-200 Container Hosting: Azure Container Registry, ACR Tasks and App Service Containers — the lesson that teaches this.