Search code examples
linuxdockerwindows-subsystem-for-linuxwindows-server

Windows Server 2022: Install docker container runtime for Linux images using WSL without Hyper-V


We want to install a docker container runtime on a (virtual) Windows Server 2022. This docker container should be able to run images on Linux (e.g. ubuntu). The server cannot run Hyper-V as it doesn't have the "required virtualization capabilities". However, WSL 2 is installed and runs Ubuntu. Docker Desktop at least suggests that the possibility exists, at least in non-server Windows installations: docker settings page that says: Use the WSL 2 based engine

However,

Microsoft has announced that Docker EE is on its way out and recommends "either containerd, Moby, or the Mirantis Container Runtime".

Is there a way to use WSL 2 to run a Linux image in a Windows Server container runtime? And is there a recommended container runtime to do this with?


Solution

  • There is a now a possibility to run Linux Containers on Windows Server 2022 using WSL 2 , for development and testing purposes, have a look at this article from microsoft

    Although it is quite a bit of work to get it running, specially the network part of it..