<p><code>
C:\Users\romain.prevost&gt;docker info  -f '{{.OSType}}/{{.Architecture}}'
'linux/x86_64'
</code></p>

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

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

<p>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!</p>

CC BY-SA 4.0
2019-03-12T06:43:12.903Z
AFAIK only Windows Server can run native containers without Hyper-V, though.
chupasaurus
CC BY-SA 4.0
2019-03-12T08:01:54.047Z
Windows 10 can, starting from the Pro version.
Romain Prévost
CC BY-SA 4.0
2019-03-12T10:36:50.017Z
The reason: all Windows native images are based on Server editions which are supposed to run on a different kernel.
chupasaurus
CC BY-SA 4.0
2019-03-12T11:04:19.523Z
Hoooooo, I did not know about Hyper-V isolation on Windows 10 for Windows containers. Thank you :)
Romain Prévost
CC BY-SA 4.0
2019-03-11T10:43:40.497Z
2019-03-11T10:43:40.497Z
Romain Prévost
<p>To run windows container you need a windows docker engine.
Have a look to this answer: <a href="https://stackoverflow.com/questions/42158596/can-windows-containers-be-hosted-on-linux">https://stackoverflow.com/questions/42158596/can-windows-containers-be-hosted-on-linux</a></p>

CC BY-SA 4.0
2019-03-11T11:07:06.283Z
That's a bit terse as an answer, if this SO Q/A happens to get deleted there's nothing left here. Attributing is necessary of course, but please take some time to write in your own words how this linked answered match this question here.
Tensibai
CC BY-SA 4.0
2019-03-11T10:35:54.073Z
2019-03-11T10:59:47.413Z
2019-03-11T10:59:47.413Z
sgargel
<p>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:</p>

<pre><code>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:~#
</code></pre>

CC BY-SA 4.0
2019-03-11T11:04:40.047Z
Your answer is in the documentation: https://docs.docker.com/docker-for-windows/#switch-between-windows-and-linux-containers
Tensibai
<docker><dockerhub>
How to run a Windows container inside Windows Subsystem for Linux (WSL)?
xerxes
# How to run a Windows container inside Windows Subsystem for Linux (WSL)?

(Asked by: username_0 on 2019-03-09)

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:~#

**Tags:** docker, dockerhub

> **Comments:**
> **username_1**: Your answer is in the documentation: https://docs.docker.com/docker-for-windows/#switch-between-windows-and-linux-containers  

---

## 2 answers

### Answer by username_2 on 2019-03-11. Score: 4

`C:\Users\romain.prevost>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>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!

> **Comments:**
> **username_3**: AFAIK only Windows Server can run native containers without Hyper-V, though.  
> **username_2**: Windows 10 can, starting from the Pro version.  
> **username_3**: The reason: all Windows native images are based on Server editions which are supposed to run on a different kernel.  
> **username_2**: Hoooooo, I did not know about Hyper-V isolation on Windows 10 for Windows containers. Thank you :)  

---

### Answer by username_4 on 2019-03-11. Score: 0

To run windows container you need a windows docker engine.
Have a look to this answer: <https://stackoverflow.com/questions/42158596/can-windows-containers-be-hosted-on-linux>

> **Comments:**
> **username_1**: That's a bit terse as an answer, if this SO Q/A happens to get deleted there's nothing left here. Attributing is necessary of course, but please take some time to write in your own words how this linked answered match this question here.  

---

