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

Question
-
Windows Server by Microsoft | Docker Hub
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:
-
It is normal for the host to connect to a conventional windows virtual machine using RDP
-
Ping the remote desktop target is normal
-
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
该问题在中文论坛的链接:
如何使用RDP连接上微软在DockerHub发布的WindowsServer2022镜像与容器(镜像拉起的docker容器) (microsoft.com)
- Edited by zbg1 Wednesday, November 10, 2021 1:47 PM
-
All replies
-
-
-
A easy look for "123Movies" term gets you a listing of masses of comparable sites. If you'll look for unfastened film websites to observe movies/TV indicates on-line, then you definately might get heaps of sites and movies123 services. Well, you have to keep in mind using a secure and up to date streaming website and our internet site is certainly one of them. There are a few faux web sites available obtainable with comparable names and designs, so do not get burdened.
-
-
-
-
Steps to use RDP to connect Windows Server 2022 image -
In a local area network (LAN), you only need to enable the option to allow remote desktop connections on your computer. You can complete this task from the Settings app or Control Panel.
Settings app
To enable the Remote Desktop using the Settings app, use these steps:
Open Settings.
Click on System.
Click on Remote Desktop.
Turn on the Enable Remote Desktop toggle switch.
Windows 10 enable Remote Desktop
Source: Windows Central (Image credit: Source: Windows Central)
Click the Confirm button.
Once you complete the steps, remote desktop connections will be allowed on the device. Windows 10 will also add the necessary rules in the built-in Microsoft Defender Firewall. However, you may need to configure the rules manually if you have a third-party firewall.
Control Panel
To enable remote connections on Windows 10, use these steps:
Open Control Panel.
Click on System and Security.
Under the "System" section, click the Allow remote access option.
Control Panel Allow Remote Access
Source: Windows Central (Image credit: Source: Windows Central)
Click the Remote tab.
Under the "Remote Desktop" section, check the Allow remote connections to this computer option.
Advertisement
Allow remote connections to this computer option
Source: Windows Central (Image credit: Source: Windows Central)
Check the Allow connections only from computers running Remote Desktop with Network Level Authentication option.
Click the OK button.
Click the Apply button.
Click the OK button.Greeting,
Ross Smith
- Proposed as answer by Shanuka Maheshwaran Monday, November 7, 2022 8:06 AM
-
-
To enable Windows Server 2022, go to "System Properties" window Remote tab and then follow the steps below:
Step 1. Choose “Allow remote connections to this computer”.
Enable Remote Desktop Server 2022
Step 2. A message saying that Remote Desktop Firewall exception will be enabled pops up and you can click “OK” to allow Remote Desktop through firewall.
Enable Server 2022 Remote Desktop through Firewall
Step 3 (Omissible). Click “Select Users” button; click “Add” button and you’ll see “Select Users” window.
Step 4 (Omissible). Type the user name that you want to add and click “OK”. Or you can click “Advanced” button to select the user from the list.
Step 5. Click “OK” to save the change and exit from “System Properties” window.
If you have no idea about how to go to System Properties window Remote tab interface, you can pick up one of the four ways as you like.
-
-
To use Remote Desktop Protocol (RDP) to connect to a Windows Server 2022 image and container released by Microsoft on Docker Hub, you will need to follow these steps:
Install Docker on your computer. You can download Docker from the official website at https://www.docker.com/.
Once Docker is installed, open a command prompt and run the following command to pull the Windows Server 2022 image from Docker Hub:docker pull mcr.microsoft.com/windows/server:2022
After the image has been downloaded, run the following command to create a new container from the image:
docker run -d -p 3389:3389 --name windows2022 mcr.microsoft.com/windows/server:2022
This will create a new container named "windows2022" and expose port 3389, which is the default port for RDP, on your host machine.
To connect to the container using RDP, you will need to use a RDP client, such as the built-in Remote Desktop Connection application on Windows or a third-party RDP client like Microsoft Remote Desktop or RealVNC.
In the RDP client, enter the IP address of your Docker host and the port you exposed in the previous step (e.g. 192.168.0.100:3389). Then, enter the username and password for the container. The default username and password for the Windows Server 2022 image is Administrator and <blank password>.
Once you have entered the correct credentials, you should be able to connect to the container and access the Windows Server 2022 environment.
I hope this helps. Let me know if you have any other questions. -
Interesting!
You might want to check my website
- Proposed as answer by FintechSister27 Friday, December 9, 2022 9:25 AM