question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az acr build for ARM64 - issue №1

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug

root@ubuntu20:~/docker# cat Dockerfile-debian-arm64

FROM arm64v8/debian:11-slim USER root

root@ubuntu20:~/docker# az acr build --image debian-arm64:latest --registry $PGPROACR --no-push --file Dockerfile-debian-arm64 . --platform linux/arm64/v8 Packing source code into tar to upload… Uploading archived source code from ‘/tmp/build_archive_0af3f3ed46384cf0b29d7553d5be34cc.tar.gz’… Sending context (14.666 KiB) to registry: $PGPROACR… Queued a build with ID: cggc Waiting for an agent… 2022/04/29 07:51:14 Downloading source code… 2022/04/29 07:51:15 Finished downloading source code 2022/04/29 07:51:15 Using acb_vol_d2832480-3d5d-4bd3-ae7b-eaee96f00af8 as the home volume 2022/04/29 07:51:15 Setting up Docker configuration… 2022/04/29 07:51:16 Successfully set up Docker configuration 2022/04/29 07:51:16 Logging in to registry: $PGPROACR.azurecr.io 2022/04/29 07:51:16 Successfully logged into $PGPROACR.azurecr.io 2022/04/29 07:51:16 Executing step ID: build. Timeout(sec): 28800, Working directory: ‘’, Network: ‘’ 2022/04/29 07:51:16 Scanning for dependencies… 2022/04/29 07:51:17 Successfully scanned dependencies 2022/04/29 07:51:17 Launching container with name: build Sending build context to Docker daemon 176.6kB Step 1/2 : FROM arm64v8/debian:11-slim 11-slim: Pulling from arm64v8/debian 6d4a449ac69c: Pulling fs layer 6d4a449ac69c: Verifying Checksum 6d4a449ac69c: Download complete 6d4a449ac69c: Pull complete Digest: sha256:f82fd419b104813e7ba6374e2e6946d4314e6e8ab90ddd565371ba04b2a61ae6 Status: Downloaded newer image for arm64v8/debian:11-slim —> f21e23dc6e6e Step 2/2 : USER root —> [Warning] The requested image’s platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested —> Running in 660b76698701 Removing intermediate container 660b76698701 —> 2b853c191b1c Successfully built 2b853c191b1c Successfully tagged $PGPROACR.azurecr.io/debian-arm64:latest 2022/04/29 07:51:22 Successfully executed container: build 2022/04/29 07:51:22 Step ID: build marked as successful (elapsed time in seconds: 5.367501) 2022/04/29 07:51:22 Populating digests for step ID: build… 2022/04/29 07:51:23 Successfully populated digests for step ID: build 2022/04/29 07:51:23 The following dependencies were found: 2022/04/29 07:51:23

  • image: registry: $PGPROACR.azurecr.io repository: debian-arm64 tag: latest runtime-dependency: registry: registry.hub.docker.com repository: arm64v8/debian tag: 11-slim digest: sha256:f82fd419b104813e7ba6374e2e6946d4314e6e8ab90ddd565371ba04b2a61ae6 git: {}

Run ID: cggc was successful after 10s

What does this message mean taking into account the parameter ‘–platform linux/arm64/v8’ has been specified ? ’ [Warning] The requested image’s platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested ’

To Reproduce

Expected behavior

Environment summary

Additional context

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gildardogmsftcommented, May 10, 2022

We will still use QEMU for a build run via ‘az acr task’

0reactions
corwestermaniddinkcommented, Oct 7, 2022

@gildardogmsft Is this still the case, now Azure has arm64 support? Is still QEMU used within ACR when using build or buildx?

This would make it possible to have 1 multi-platform docker image for local development (arm64/x86 support) and production (x86 Linux -> Azure Container Apps) and no need for separate images. QEMU is very slow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ACR Tasks overview - Azure Container Registry
An introduction to ACR Tasks, a suite of features in Azure Container Registry that provides secure, automated container image build, ...
Read more >
Authorization to perform action not granted to azure cli az acr ...
The following yaml is run to achieve ARM64 container builds via azure pipelines: steps: - task: AzureCLI@2 displayName: build with ACR Tasks ...
Read more >
OpenStack on ARM64 - Kolla container images
If you have more than one Azure subscription, choose one: az account ... az acr create --resource-group $RG --name $ACR_NAME --sku Basic ...
Read more >
Azure: az acr build --no-push image is not present on local host
So the parameter --no-push means ACR builds the image in that agent, but does not push it to the ACR. The only thing...
Read more >
Anthony Chu on Twitter: "@jfarrell @Azure az acr build is your ...
az acr build is your friend. Would love to understand what went wrong though. I don't have an M1 to test on and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found