Obsdian on Docker container exporting GUI to X Server

Hi, I’m using Obsidian as a GUI interface from a container. This works well but, sometimes this crashes with this message :

ERROR:gl_utils.cc(318)] [.WebGL-0x218c0289f100]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels

Does anyone know how to fix this? My laptop is a Dell Inspiron 7472 with an MX150 GPU and I’m using Alpine Linux as a Host and Debian:bullseye-slim as a base for the obsidian container. My Dockerfile is:

FROM debian:bullseye-slim

RUN apt-get update && apt-get install -y wget

RUN wget -nv -c https://github.com/obsidianmd/obsidian-releases/releases/download/v0.13.31/obsidian_0.13.31_amd64.deb

RUN apt-get install -y ca-certificates \

gconf2 \

gconf-service \

gvfs-bin \

libasound2 \

libcap2 \

libgconf-2-4 \

libgtk-3-0 \

libnotify4 \

libnss3 \

libxkbfile1 \

libxss1 \

libxtst6 \

libx11-xcb-dev \

libsecret-1-0 \

libdrm2 \

libgbm1 \

libgl1 \

mesa-utils \

libglu1-mesa \

xdg-utils --no-install-recommends

RUN dpkg -i obsidian_0.13.31_amd64.deb

ENTRYPOINT [“obsidian”, “–no-sandbox” ]

and I run with:

docker run --rm -it -d -e DISPLAY=unix$DISPLAY --net=host -v /tmp/.X11-unix/:/tmp/.X11-unix --memory 1gb --name Obsidian -v /etc/localtime:/etc/localtime:ro -e GDK_SCALE -e GDK_DPI_SCALE -v /run/dbus/system_bus_socket:/run/dbus/system_bus_socket -v $HOME/data:/root/ obsidian

As I said, this works fine, but sometimes when I try to show the graph, for example, they crash. I try to disable GPU acceleration to try to solve this but didn’t work. I think it’s a litter detail to make this run as a GUI interface.
Can anyone help me if this?

Might be OpenGL or something related perhaps its GLX support?

why X?
VNC and or RDP offer better compatibility across remote platforms.

There are examples of Docker images using VNC, web server and a web VNC client
Take a look at Calibre Docker image on DockerHub as an example.