Commands like dotnet restore hangs when attempting to emulate linux/amd64
on a mac
#4944
kurt-mueller-osumc
started this conversation in
General
Replies: 1 comment 4 replies
-
This won't work because Docker is using QEMU here which is not supported: https://github.com/dotnet/core/blob/main/release-notes/8.0/supported-os.md#qemu. There isn't a workaround available without having a machine that matches the architecture of the target container. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I created a simple repo here: https://github.com/kurt-mueller-osumc/dotnet-amd64
This repository contains a simple dotnet project and Dockerfile. It's meant to demonstrate that commands like
dotnet restore
&dotnet build
fail (i.e. they simply hang) when attempting to emulatelinux/amd64
on aarm64
architecture (i.e. Macs).Why want to emulate
linux/amd64
on a Mac? In my case, it's because I want to run dotnet isolated Azure Functions on my Mac. Azure Functions arex64/amd64
only and its official docker images only supportamd64
architecture.You can experiencing this by running the following command on a Mac:
I'm frustrated that there's no possible way I can run an dotnet-isolated Azure Functions docker image on my Mac.
Beta Was this translation helpful? Give feedback.
All reactions