![]() 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |