我有一个没有GUI的服务器(新鲜的Debian没有任何桌面环境,或者Ubuntu服务器,没有X服务器,先验)。我考虑安装一个基于Ubuntu的正式容器,并在上面添加一个桌面环境,以便使用常规的GUI应用程序。
我在局域网中有第二台计算机,它有一个常规的Debian或Xubuntu。
是否可以使用第二台计算机打开容器的桌面会话(它运行在无GUI服务器上) ? (我希望尽可能多地使用标准Debian或Ubuntu包,并避免使用外部PPA包)。
小型的最先进的:
我看到了
- My problem is that it is not explicit whether the docker is run on a GUI or GUI-less host. (And I would prefer to use a package from the Debian or Ubuntu repositories)
我也看过康索尔码头的图片,如: consol/ubuntu-xfce-vnc https://hub.docker.com/r/consol/ubuntu-xfce-vnc/。
- I am not sure but they also seem to run in a GUI-based environment.
我还看到了一种使用Xvfb和x11vnc的解决方案(对不起,这是一个法语网页,但我希望翻译与常规onlie工具一样好):Utiliser comme接口、graphique docker https://www.geeketfier.fr/post/docker-display-on-windows/。
- This one also, I am not sure but this solution seems also be running on a GUI-based environment.
发布于 2020-04-12 17:50:01
我找到了这个码头图像,它解决了我的问题: docker-x2go-xubuntu:https://hub.docker.com/r/paimpozhil/docker-x2go-xubuntu
我在没有GUI的服务器上构建了它,并运行它,就像在码头枢纽上解释的那样。
在我的第二台计算机上,我打开了指向码头接口的GUIless服务器的ssh隧道:
ssh -CY -L 33333:container.docker.ip:2222 -l guilessuserlogin guiless.server.ip(我在GUIless服务器上通过ifconfig检索容器IP )
在第二台计算机上,我从常规存储库安装了x2goclient,并配置了一个会话以连接到localhost:33333。
连接完后,对接机的GUI桌面就完全可用了。
https://stackoverflow.com/questions/61164320
复制相似问题