Docker Community Forums

Share and learn in the Docker community.

Enable/Install WSL within a Docker Windows container


(Natdock) #1

Hi everyone,

I am wanting to enable and install the Windows Subsystem for Linux (WSL) feature from within a Docker windowsservrecore container.
However, due to the fact that Docker containers are more like full-environment-processes than VMs,
and because WSL feature installation requires a ‘system reboot’; this has proven troublesome.

I have seen solutions that other people have figured out for installing features that normally ‘require reboot’ in a Docker windows container:

So I was wondering if anyone had any thoughts or has managed something similar for getting WSL to install in a Docker windows container?

Thanks in advance.