question

zbg-6504 avatar image
1 Vote"
zbg-6504 asked LimitlessTechnology-2700 answered

Is there a way to connect through remote desktop to a running Windows Server container?

147917-image.png


I successfully pulled the container down and ran it. But I don't know how to connect this run container with RDP (Remote Desktop).

Here are some actions I've tried:

  1. It is normal for the host to connect to a conventional windows virtual machine using RDP

  2. Ping the remote desktop target is normal147919-image.png

  3. I learned that in the old version, you can use PowerShell to try to let the firewall release port 3389, but in this version, doing so seems to report an error

目前新的进展:找到了一些资料
https://www.it1352.com/1904474.html
https://social.technet.microsoft.com/Forums/en-US/ed0336ba-375a-42a5-8ef4-6591a36eceb2/how-to-use-rdp-to-connect-windows-server-2022-image-and-container-released-by-microsoft-on-dockerhub?forum=reportabug



windows-serverremote-desktop-servicesremote-desktop-clientdotnet-ad
image.png (108.0 KiB)
image.png (249.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hi @zbg-6504

I suppose windows Containers do not support RDP. They are designed and built to run services and applications, and they can be accessed using PowerShell/CMD command-line interface.

Accessing windows server container with Remote Desktop
https://social.msdn.microsoft.com/Forums/en-US/58bc36e6-3e39-4468-bfe1-d199b3de9888/accessing-windows-server-container-with-remote-desktop?forum=windowscontainers


--If the reply is helpful, please Upvote and Accept it as an answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.