How to run a Windows container inside Windows Subsystem for Linux (WSL)? I have managed to install docker on Windows, and I can run docker from my Ubuntu bash prompt of the WSL. But when I try to pull or run a Windows image from docker hub, I get the following error:

root@DESKTOP-J9B5HJG:~# docker info  -f '{{.OSType}}/{{.Architecture}}'
linux/x86_64
root@DESKTOP-J9B5HJG:~# docker pull mcr.microsoft.com/windows:1809-amd64
Error response from daemon: manifest for mcr.microsoft.com/windows:1809-amd64 not found
root@DESKTOP-J9B5HJG:~#
C:\Users\romain.prevost&gt;docker info  -f '{{.OSType}}/{{.Architecture}}'
'linux/x86_64'


Now, if you are running Docker for Windows, right click the Docker icon in your tray, and select "Switch to windows containers"


C:\Users\romain.prevost&gt;docker info  -f '{{.OSType}}/{{.Architecture}}'
'windows/x86_64'


Voilà! Essentially, Docker for Windows includes two different engines : Linux in a VM, and Windows, natively on your windows kernel. But soon, there will be options to run Linux containers natively on the Windows kernel. Exciting times!