Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker container Windows, connect via RDP or VNC Client

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.

like image 344
Alex Ferreli Avatar asked Sep 06 '19 11:09

Alex Ferreli


People also ask

Can you RDP to a Windows Docker container?

Nope. According to an answer, Windows Containers does not support RDP.

How do I connect to a Docker container?

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.


1 Answers

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/

like image 125
jtro Avatar answered Sep 20 '22 12:09

jtro