Containers feature is disabled. Enable it using the PowerShell script (in an administrative PowerShell) and restart your computer before using Docker Desktop: Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V", "Containers") -All
|
Dann öffnet man PowerShell als Administrator und gibt den Befehl ein:
Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V", "Containers") -All |
Und nach dem Neustart sollte es funktionieren
Your Docker server host is configured for Linux, however your project targets Windows.
Would you like to switch Docker to Windows containers now
è yes
Und danach sollte die Asp .Net Anwendung in Docker funktionieren und als https://localhost:51497 starten