Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Problems about running Qt-Gui app in docker container
Forum Updated to NodeBB v4.3 + New Features

Problems about running Qt-Gui app in docker container

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 274 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sickplayer
    wrote on last edited by
    #1

    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/libqxcb-glx-integration.so"
    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved