Skip to content

kurt-mueller-osumc/dotnet-amd64

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emulating linux/amd64 dotnet images on a Macbook Pro

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 emulate linux/amd64 on a arm64 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 are x64/amd64 only and its official docker images only support amd64 architecture.

You can experiencing this by running the following command on a Mac:

# this process will stall when running `dotnet restore`
docker build --platform linux/amd64 .

About

Emulating linux/amd64 dotnet images on a Macbook Pro

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published