3

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 4

2

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.

1

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.

See What's new for Docker on Windows Server 2019?

1

I did want to throw this in the mix for those who are interested: dockur/windows

1

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!

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.