Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

failed to load /usr/bin/dotnet: exec format error

I'm trying to use DigitalOcean to host a C# docker container on docker hub (With the Apps platform)

[2021-12-08 23:24:04] starting container: starting non-root container [dotnet Alace.cs.dll]: creating process: failed to load /usr/bin/dotnet: exec format error

The container runs perfectly fine on my computer.

like image 968
Alyx Avatar asked May 10 '26 08:05

Alyx


1 Answers

Your image is built for an Arm processor and the DigitalOcean machine is probably an amd64 machine.

You can try building for amd64 with the buildx command. Something like

docker buildx build --platform linux/amd64 -t alyxw/alace-cs:amd64 .
like image 101
Hans Kilian Avatar answered May 12 '26 21:05

Hans Kilian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!