Docker image operating system "windows" cannot be used on this platform

Problem

Docker shows this error while pulling the images

1 image operating system "windows" cannot be used on this platform

Solution

Change docker to use windows container

  1. right click on the docker icon (bottom right of the screen, near the clock)

     

  2. Select “Switch to windows containers”