Important: Please read the Qt Code of Conduct -

Problems about running Qt-Gui app in docker container

  • I tried docker run -it -u 0 --net=host -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix \ -v /dev/dri/card0:/dev/dri/card0 myimage to run my program, its image was not good enough though it could display some infomation's messagebox.
    terminal info:

    Got keys from plugin meta data ("xcb_glx")
    loaded library "/home/sgx/sgxmtc/xcbglintegrations/"
    libGL error: failed to open /dev/dri/card0: Operation not permitted
    libGL error: failed to load driver: vmwgfx

    How do i do if i want to run the program in the docker container like it is running in my local desktop and display normally?

Log in to reply