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

zb g 6 Reputation points
2021-11-09T23:51:03.747+00:00

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 for business | Windows Client for IT Pros | User experience | Remote desktop services and terminal services
Windows for business | Windows Server | User experience | Other
Developer technologies | .NET | Other
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,926 Reputation points
    2021-11-15T18:50:59.127+00:00

    Hi @zb g

    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--

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.