Can't see visually a windows 10 container.
I have tried to connect via RDP (exposing 3389 port via -p 3389:3389
)
I know that inside the container there is a virtual monitor (emulated at 1240x768). I have created a node server that return me a sceeenshot from the desktop with this plugin:
https://www.npmjs.com/package/screenshot-desktop
Using it locally work like a charm, I see a screenshot of my current monitor. But when i try to run it inside the container i see a black screen, so maybe it's impossible to connect visually...
FROM mcr.microsoft.com/windows/servercore:1903
# FROM mcr.microsoft.com/windows:1903
EXPOSE 3389
docker run -it --rm -p 3389:3389 sample:dev
I tried 2 base image but result it's the same
I would see what is happening inside the container, like a VM.
Nope. According to an answer, Windows Containers does not support RDP.
To connect to a container using plain docker commands, you can use docker exec and docker attach . docker exec is a lot more popular because you can run a new command that allows you to spawn a new shell. You can check processes, files and operate like in your local environment.
There is no RDP support for windows containers at this time.
https://social.msdn.microsoft.com/Forums/en-US/f4314bc8-52d0-477c-9ecc-86a578b53814/no-support-expected-for-rdp-in-containers-for-windows-server-2016?forum=windowscontainers
I've also been trying to get a container running VNC and have opened a ticket with the TightVNC team you can see here:
https://sourceforge.net/p/vnc-tight/bugs/1483/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With