Starting with wsl2 docker can run in it s full flow in windows and you can use images built for linux.
Linux containers on windows docker.
This involves setting an environment variable and creating a docker daemon configuration file.
Have consistent storage and networking properties with linux containers running on linux since they are running on a linux vm.
When using docker for windows also known as docker desktop a virtual machine running the docker daemon is installed using the windows hyper v virtualisation framework.
This article walks you through enabling linux containers on windows lcow as of this writing lcow is an experimental feature and is not directly supported by docker or microsoft experimental features are not supported by the docker support sla and should never be used in production scenarios.
Share a kernel with each other and the moby vm but not with the windows host.
How docker works on windows.
It s ready for windows containers.
Note that we ll be covering only linux based containers in this article.
In this model all linux containers share a single linux based container host and all linux containers.
Windows subsystem for linux wsl 2 introduces a significant architectural change as it is a full linux kernel built by microsoft allowing linux containers to run natively without emulation.
But we want to run linux containers now that we have docker installed we need to make some changes to the default configuration to enable support for linux containers.
This is exactly what the linuxkit toolkit was designed for.