Fix docker-image-refresh: build via ACR Tasks to avoid Docker Hub on isolated pool#3671
Merged
Merged
Conversation
…er Hub On the network-isolated 1ES pool the agent cannot reach registry-1.docker.io, so 'docker run tonistiigi/binfmt' and 'docker buildx create' (which pull moby/buildkit) fail with a connection timeout. Replace the local docker/buildx path with a server-side 'az acr build': ACR pulls the base from MCR and pushes the result, with no local Docker daemon, no QEMU/binfmt, and no Docker Hub dependency. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d3f8fec7-b00b-46be-ba39-7e1f3e7f7188
gavinbarron
enabled auto-merge (squash)
July 22, 2026 00:53
adrian05-ms
approved these changes
Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to the
docker-image-refreshpipeline. On the network-isolated 1ES pool the build fails with:Cause:
docker run … tonistiigi/binfmtanddocker buildx createpull helper images (tonistiigi/binfmt,moby/buildkit) from Docker Hub, which the isolated pool can't reach.Fix: Build server-side with ACR Tasks (
az acr build). ACR pulls the base from MCR and pushes the result back to the registry — no local Docker daemon, no buildx/QEMU, and no Docker Hub dependency. Singlelinux/amd64target, so no multi-arch emulation needed.Permissions note:
az acr buildschedules an ACR Task run, so theACR Images Push Service Connectionidentity needs task-scheduling rights (Microsoft.ContainerRegistry/registries/scheduleRun/action— included in Contributor), in addition to AcrPush. If the SP only has AcrPush, either grant that action or fall back to classicdocker build+docker push(which pulls the base from MCR only).