How to connect Windows Server 2022 image and container (docker container pulled up by image) released by Microsoft on dockerhub using RDP

zb g 6 Reputation points
2021-11-09T11:43:17.433+00:00

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 normal
  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
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,346 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,084 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,226 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,336 Reputation points
    2021-12-21T19:12:04.667+00:00

    Hi zbg-6504,

    To run containers on Windows Server, you need a physical server or virtual machine running Windows Server 2022, Windows Server (Semi-Annual Channel), Windows Server 2019, or Windows Server 2016.

    You can try this link to get the detailed steps

    https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/set-up-environment?tabs=Windows-Server

    https://techcommunity.microsoft.com/t5/containers/windows-server-2022-and-beyond-for-containers/ba-p/2712487

    --------

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

    0 comments No comments