Repro steps
After switching to windows containers in docker for windows:
> docker run -it mcr.microsoft.com/dotnet/sdk:5.0.100-preview.8-nanoserver-1909 pwsh
... docker output ...
PS C:\> dotnet fsi
Unhandled exception. System.PlatformNotSupportedException: The system does not support the STA thread apartment.
PS C:\>
Repro steps
After switching to windows containers in docker for windows: