Arm32v7 samples do not build. #3963
-
Replication: git clone https://github.com/dotnet/dotnet-docker.git Error:
I ran into this when my own working images that I was trying to get running on a RaspberryPI. All of the online help for that error says my dotnet installation is broken but I am using the MS supplied docker so something is really messed up. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I'm assuming you're attempting to build this on an x64 machine? That uses QEMU to run the code in emulation which has incompatibility with .NET. See the comment here: #1537 (comment). Instead, you can use the The point is that if you're doing a cross-architecture scenario like this, you need to be explicit in the tag names that you use such that retrieve the necessary architecture. The SDK tag should match the architecture of your host machine and the runtime/aspnet tag should match the architecture of your desired runtime environment. |
Beta Was this translation helpful? Give feedback.
I'm assuming you're attempting to build this on an x64 machine? That uses QEMU to run the code in emulation which has incompatibility with .NET. See the comment here: #1537 (comment).
Instead, you can use the
Dockerfile.debian-arm32
file at that location and don't use the--platform
option in yourdocker build
command. That will allow you to build an Arm32 app from an AMD64 SDK container.The point is that if you're doing a cross-architecture scenario like this, you need to be explicit in the tag names that you use such that retrieve the necessary architecture. The SDK tag should match the architecture of your host machine and the runtime/aspnet tag should match the architecture of your d…