windows/servercore:1607 cexecsvc running, port 3389 not listening.My experience so far (using xfreerdp as client):
CANNOT REMOTE DESKTOP TO WINDOWS 10 FROM WINDOWS 10 WINDOWS
I have no idea how the windows and servercore images differ in general and in terms of RDP, and on top of that I'm by no means a windows expert. Pulling today that tag does not work either: you get a response from the server but can't execute anything. The reference you used to build your Dockerfile states that after 1709_KB4074588 RDP cannot be made to work anymore. As such, I'm hoping this doesn't count as a duplicate. Note: I've seen a similar question for Windows Server though asked again as that's for Server rather than Desktop, the question has less info on what's been tried, and there are no answers. Note: Running net start TermService on the container returns The requested service has already been started so it should be listening. I've also tried running powershell -command "Test-NetConnection -ComputerName 'localhost' -Port 3389" from the container's command prompt but this also returns a failure suggesting that the service is not listening on this port. The container runs successfully but I can't connect to it (using mstsc with computer name 127.0.0.1:3390 on the host device or even doing a Test-NetConnection -ComputerName 127.0.0.1 -Port 3390). And run it via: docker run -expose 3389 -publish 3390:3389 -it win10poc I then build this image via: docker build -t win10poc. Note: Since it's a Windows image, I've switched Docker Desktop to Windows Containers (ref: Docker: "no matching manifest for windows/amd64 in the manifest list entries") RUN Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name 'TemporaryALiC' -Type 'DWord' -Value 1 RUN Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Control\Terminal Server' -Name 'fDenyTSConnections' -Type 'DWord' -Value 0 # enable RDP (value is 1 on the base image) # switch shell to powershell (note: pwsh not available on the image) #RUN netsh advfirewall set allprofiles state off # is not enabled so presumably if the firewall's not running, it's not a firewall issue. # I tried disabling the firewall but this command errors as Windows Defender Firewall service I'm trying to enable remote desktop on a container image.