我想构建一个Docker镜像,安装Ubuntu GNOME桌面、收紧noVNC和noVNC,以便从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时,我只能看到桌面背景和一个窗口;我没有菜单栏、启动器等。
我围绕这个话题搜索了很长时间,但没有找到任何明确的答案,如何让它正常工作。也许我错过了什么。感谢您的帮助,谢谢!
发布于 2017-06-21 04:27:53
也许是something like this?。我使用的客户端是chrome的vncviewer
PS:它工作得很好,除了在构建阶段的一些dbus错误,等待超时,镜像无论如何都应该被构建。
https://stackoverflow.com/questions/44227215
复制相似问题