-
Notifications
You must be signed in to change notification settings - Fork 436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VNC support for docker #947
Comments
I try a few day ago. But we need port forward in ubridge if we want do to it. Because with our network interface docker lost port control. |
Tested VNC client from Windows to remote Ubuntu server (tcp 32768 on the server mapped to tcp 5900 on the container running inside). Maybe we could use only VNC port as it gives access to container console and GUI apps started from there.
|
Sound good. Now we need to found a way to make a port redirect when we inject an ethernet interface inside the container. |
After all our discussions about injecting stuff in containers I got a solutions for VNC. I found a way without the need to play with the network. It's pretty common in the docker community to inject their Xsocket inside the container. At first install on the host machine x11vnc and xvfb it's very common package no worry. Start Xvfb as fake X server on display 102:
GNS3 will need to affect random display port and to keep track of it. Next I start x11vnc:
Last step is to start the container and inject the X socket as file inside:
The big advantage is we don't need to play with the network. We can not create trouble in our topologie :) And a container with a graphic application is damn simple:
|
Done |
If a container has is console type set to VNC we need to port forward the container 5900 to the console port and connect the vnc client to it.
The text was updated successfully, but these errors were encountered: