Skip to content

dotnet binary fails on Docker multiarch #47280

@rickardp

Description

@rickardp

When running the dotnet binary under Docker multiarch (host is aarch64):

docker run --platform linux/amd64 mcr.microsoft.com/dotnet/sdk:5.0-alpine dotnet --info   
Failed to resolve full path of the current executable [/proc/self/exe]

It appears the non-Apline version has a different problem, though I did not test it very much

docker run --platform linux/amd64 mcr.microsoft.com/dotnet/sdk:5.0 dotnet --info 
Failed to create CoreCLR, HRESULT: 0x8007FF06

Possibly it could be due to the fact that the process is wrapped by the qemu-x86_64 binary.

In this case, /proc//exe points to /usr/bin/qemu-x86_64, which does not exist on the file system (i.e. not in the Docker image)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions