`dotnet` CLI does not work under gVisor
- Dominant language
- C#
- Stars
- 3.2k
- Forks
- 1.3k
- PR merge metrics
- PR metrics pending
Description
### Describe the bug
I am trying to use `mcr.microsoft.com/dotnet/sdk` under a gVisor environment on arm64 (Apple Silicon). Most commands fail with the following error:
```
Fatal error. AdvSimd processor support required.
Aborted
```
### To Reproduce
You will need gVisor set up as an additional container runtime.
This command succeeds:
```
$ docker run -it --runtime runsc mcr.microsoft.com/dotnet/sdk:8.0.401-bookworm-slim dotnet
Usage: dotnet [options]
Usage: dotnet [path-to-application]
Options:
-h|--help Display help.
--info Display .NET information.
--list-sdks Display the installed SDKs.
--list-runtimes Display the installed runtimes.
path-to-application:
The path to an application .dll file to execute.
```
This command fails:
```
$ docker run -it --runtime runsc mcr.microsoft.com/dotnet/sdk:8.0.401-bookworm-slim dotnet --version
Fatal error. AdvSimd processor support required.
```
`dotnet new|build|pack` also fail with the same error.
### Exceptions (if any)
The same commands (`dotnet --version` and others) work for the following images:
- mcr.microsoft.com/dotnet/sdk:7.0-bookworm-slim
- mcr.microsoft.com/dotnet/sdk:6.0-bookworm-slim
### Further technical details
I am targeting the arm64 arch (running under Apple Silicon). I have not tested this under any other arch.
`dotnet --info` fails under `sdk:8`, but `sdk:7` returns the following:
```
$ docker run -it --runtime runsc mcr.microsoft.com/dotnet/sdk:7.0-bookworm-slim dotnet --info
.NET SDK:
Version: 7.0.410
Commit: 8b4848c3b2
Runtime Environment:
OS Name: debian
OS Version: 12
OS Platform: Linux
RID: debian.12-arm64
Base Path: /usr/share/dotnet/sdk/7.0.410/
Host:
Version: 7.0.20
Architecture: arm64
Commit: 0fb6ac59fb
.NET SDKs installed:
7.0.410 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 7.0.20 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 7.0.20 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.