我正在尝试安装一个基于GUI的称为“蜻蜓”的软件作为一个容器,因为该软件与我的主机OS RHEL7有冲突。因此,我认为安装作为一个码头容器可能是一个解决方案,即使我是全新的码头。我的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 在构建了相应的Docker映像之后,它无法启动基于GUI的安装程序窗口--蜻蜓窗口.我使用以下两个命令:
xhost +local:docker
sudo docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix: dragonfly我尝试了在不同论坛上发布的各种建议,因此,我尝试了各种不同的论点,但是每次我都会收到两个错误,如下所示:
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.你能建议我如何解决这个问题吗?
发布于 2022-02-07 09:04:01
事实上,我是用X2Go远程桌面客户端登录我的机器,它在登录后提供了自己的桌面。但是,我还尝试了另一个名为NoMachine的远程登录软件,它不创建自己的显示或桌面,而是为远程用户保留原始桌面。当我尝试使用NoMachine时,没有错误。
所以我想,以上两个错误都是由远程桌面软件X2Go引起的。
https://stackoverflow.com/questions/70884441
复制相似问题