Readdy Write  
0,00 €
Your View Money
Views: Count
Self 20% 0
Your Content 60% 0

Users by Links 0
u1*(Content+Views) 10% 0
Follow-Follower 0
s2*(Income) 5% 0

Count
Followers 0
Login Register as User

Docker: An error occurred: Containers feature is disabled. Enable it using the PowerShell script

06.03.2023 (👁3800)

 

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

 

 

 

Ein Bild, das Text, Screenshot, Monitor, schwarz enthält.

Automatisch generierte Beschreibung

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