79552146

Date: 2025-04-03 06:31:20
Score: 0.5
Natty:
Report link

Why you're getting the Error

This happens when you are running Docker Desktop in Linux Containers mode.

Docker Desktop either runs Linux Containers or Windows Containers. It can't run both.

How to Fix it

You have to switch it to Windows Containers mode before trying to pull Windows based images. To do this

  1. Right click on the Docker Desktop tray icon
  2. Hit Switch to Windows Containers

Additional Steps you might need

You may be asked to add Windows features like Containers, HyperV, WSL as the requirements are different when you switch to Windows containers.

I also had to enable this feature via Powershell (admin)

Enable-WindowsOptionalFeature -Online -FeatureName $("Microsoft-Hyper-V", "Containers") -All

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): Why you
  • Low reputation (0.5):
Posted by: madacoda