Runtime Identifier and failing tests in docker

Guriy Samarin
1 min readDec 6, 2022

--

Do you know what RID is, and why you should care? It seems like docker is one great abstraction and dotnet is another. Just run one inside another any way you like and everything will magically work.

It’s true… Most of the time. There is an error on Alpine 3.13 docker based image in dotnet test (crashes test runner). You can get around it using dotnet test -v m — runtime alpine-x64

The idea is your environment detected incorrectly. So you need to help dotnet. RID values are used to identify target platforms where the application runs.

dotnet docker

Reference:

--

--

Guriy Samarin
Guriy Samarin

Written by Guriy Samarin

Software developer at Amazon. Web (mostly backend) development now. My stack — .NET (APS.NET Core MVC).

No responses yet