【发布时间】:2021-10-15 09:22:55
【问题描述】:
我有一个 docker 映像,其中安装了医疗数据分析应用程序。该应用程序适用于 gui 和控制台。通常,在我的 linux 中,我从终端运行应用程序
./dsi_studio --action=trk ...
而且它工作得非常顺利。如果你点击这个应用程序,它会尝试打开一个 GUI。当我尝试在 docker 映像中使用它时,它无论如何都会尝试连接到显示器(即使我按照终端所示运行)。当然,由于我没有为从 docker 显示 GUI 进行任何设置,所以我收到以下错误,指出它找不到要连接的显示器。
qt.qpa.xcb: could not connect to display
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.
我不知道为什么应用程序在终端中运行时尝试打开显示,因为它没有在我的 linux 中打开 GUI。我只是想以某种方式抑制这个警告,就好像有一个假显示器一样。我不想将显示器连接到 docker 映像,因为此映像将在 HPC 中批量运行。
那么,我该怎么做呢?
【问题讨论】:
标签: docker qt user-interface display