-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Closed
Description
Description
Similar to #71856, on arm64 computer (i.e. macbook pro) when targeting the linux/amd64 platform during a docker build, commands like dotnet restore will hang indefinitely.
The only way to rectify this is be setting the DOTNET_EnableWriteXorExecute=0 environment variable. However, this cause the docker container to respond slowly (I use the docker container as a dev environment).
A simple repo with this reproduced is found here:
Reproduction Steps
- Be on an arm64 computer like a macbook pro.
- Clone this repo: https://github.com/kurt-mueller-osumc/dotnet-amd64/tree/main
- Run the command
docker build --platform linux/amd64 .
Expected behavior
Ideally, dotnet restore should simply work :).
Actual behavior
dotnet restore hangs.
Regression?
No response
Known Workarounds
Add this line to the Dockerfile:
ENV DOTNET_EnableWriteXorExecute=0Configuration
No response
Other information
No response
Reactions are currently unavailable