【问题标题】:Docker + GNOME + tightvncserver + noVNCDocker + GNOME + 紧 vncserver + noVNC
【发布时间】:2017-10-28 20:40:04
【问题描述】:

我想构建一个安装 Ubuntu GNOME 桌面、tightvncserver 和 noVNC 的 Docker 映像,以便从 Web 浏览器远程访问容器。

在我的 Dockerfile 中,我安装了所有必要的 GNOME 包:

RUN apt-get update && apt-get install -y \

  ubuntu-desktop \
  gnome-panel \
  gnome-settings-daemon \
  metacity \
  nautilus \
  gnome-terminal \

我的 xstartup 文件是:

#!/bin/sh

export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
/etc/X11/Xsession
vncconfig -iconic &

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &

不幸的是,当我登录 noVNC 时,我只能看到一个桌面背景和一个窗口;我没有菜单栏、启动器等。

我围绕这个主题搜索了很长时间,但没有找到任何明确的答案如何使其正常工作。也许我错过了一些东西。任何帮助表示赞赏,谢谢!

【问题讨论】:

标签: ubuntu docker gnome vnc


【解决方案1】:

也许是something like this?。 我使用的客户端是chrome的vncviewer

PS:除了在构建阶段出现一些 dbus 错误外,它工作正常,等待超时,无论如何都应该构建图像。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-01-15
    • 2016-12-05
    • 1970-01-01
    • 2011-06-25
    • 2016-07-13
    • 2015-10-10
    • 2015-09-02
    • 1970-01-01
    相关资源
    最近更新 更多