I'm wondering if it is possible to configure a docker container to run Windows and then connect to it via RDP or parsec and use it as my main machine?
4 Answers
Well, yes, you can run containers with Windows. Microsoft even provides official container images, but don't expect them to be as versatile as Linux images. I don't have any experience with them because I didn't have any use for it yet. From what I gathered you need a Windows host to run the containers, they don't run on Linux hosts (please correct me if I'm wrong here). You won't have a desktop either. If you manage to rdp into it (which I doubt is possible) you will get a command shell at most. The containers are meant to run powershell scripts or applications without gui, nothing more.
is it possible to configure a docker container to run Windows
Yes, you can Run native Windows Server Containers
connect to it via RDP
Nope.
According to an answer, Windows Containers does not support RDP. To quote an article from 2019:
But notice you still cannot RDP into such Windows containers.
While running full Windows in Docker is limited, you might find this related approach helpful. I worked on a project to containerize Windows using Vagrant and libvirt.
https://github.com/vaggeliskls/windows-in-docker-container
Hope this adds some options!