From 1b7a95844958a6707e2b796a98e68a858abfe402 Mon Sep 17 00:00:00 2001 From: Stephanie Lanthier <37594050+slanthier1@users.noreply.github.com> Date: Mon, 3 Jan 2022 20:42:57 -0500 Subject: [PATCH] OpenGL failure leads in a core dump Addition to Dockerfile to avoid a core dump with Failed to create OpenGL context for format QSurfaceFormat The idea is based on https://stackoverflow.com/questions/69049171/how-to-fix-libgl-error-in-qt5-qml-gui-launched-from-docker-on-linux --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 383ae7a..170f4c1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -65,6 +65,9 @@ RUN chown ${HOST_USERNAME}:${HOST_GID} /home/${HOST_USERNAME}/.config # Set the path for QT to find the keyboard context ENV QT_XKB_CONFIG_ROOT /usr/share/X11/xkb +# Prevent OpenGL error +ENV QT_QUICK_BACKEND=software + # Enter! ENTRYPOINT pcoip-client