我正在尝试安装一个名为 Dragonfly 的基于 GUI 的软件作为容器,因为该软件与我的主机操作系统 RHEL7 发生冲突。因此,我认为安装为 Docker 容器可能是一个解决方案,尽管我对 Docker 完全陌生。我的 Dockerfile 如下所示:
FROM ubuntu
COPY DragonflyInstaller /Dragonfly/
WORKDIR /Dragonfly/
# Dependent packages for Dragonfly
ARG DEBIAN_FRONTEND=noninteractive #
ENV TZ=Europe/Berlin
RUN apt-get update && apt-get install -y apt-utils \
fontconfig \
libxcb1 \
libxcb-glx0 \
x11-common \
x11-apps \
libx11-xcb-dev \
libxrender1 \
libxext6 \
libxkbcommon-x11-0 \
libglu1 \
libxcb-xinerama0 \
qt5-default \
libxcb-icccm4 \
libxcb-image0 \
libxcb-render-util0 \
libxcb-util1 \
freeglut3-dev \
python3-pip \
xauth
CMD ./DragonflyInstaller
Run Code Online (Sandbox Code Playgroud)
构建相应的 Docker 镜像后,无法启动 Dragonfly 基于 GUI 的安装程序窗口。我正在使用以下两个命令:
xhost +local:docker
sudo docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix: dragonfly
Run Code Online (Sandbox Code Playgroud)
我尝试了在不同论坛上发布的各种建议,因此,我尝试了docker run的各种参数,但是,我每次都会收到两个错误,如下所示:
No protocol specified
qt.qpa.xcb: could not connect to display :340.0
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: minimal, xcb.
Run Code Online (Sandbox Code Playgroud)
您能建议我如何解决这个问题吗?
事实上,我使用 X2Go 远程桌面客户端登录我的机器,该客户端在登录后提供自己的桌面。但是,我也尝试了另一个名为 NoMachine 的远程登录软件,它不会创建自己的显示或桌面,而是保留原始桌面以供使用。远程用户。当我尝试使用 NoMachine 时,没有出现任何错误。
所以我猜测,上述两个错误是由远程桌面软件X2Go引起的。
| 归档时间: |
|
| 查看次数: |
4589 次 |
| 最近记录: |