Windows Subsystem for Linux allows to run Linux binaries directly under Windows. Next logical step might be to try to install Docker on the Linux, and then run images.

It might work, never tried. But, I’ve discovered (quite late – I have to admit) a way to ‘mount’ directly any Docker image as a subsystem for Windows 10.

What is needed:

Install an image as Windows Subsystem for Linux

In case of my image, and most likely more images, we have problems like:

  • No access to root privileges
  • Missing sudo

In order to fix it:


Test run of Emscripten project

Let’s create a file test.cpp

Why is that:

  • is not configured correctly, that is I have incorrect environment variables:
Some comments:

  • It did rebuild all bc, even if the image contains pre-build cache: It’s because cache has been generated on root account.
  • The image doesn’t work out of the shelf: Something to improve :)

More examples and links:

2 Kudos