Issues Running QT and Pyside Template

That command does not produce a running container. However if I use this command I get a working Weston container.

docker container run -d --name=weston --net=host \
    --cap-add CAP_SYS_TTY_CONFIG \
    -v /dev:/dev -v /tmp:/tmp -v /run/udev/:/run/udev/ \
    --device-cgroup-rule="c 4:* rmw" --device-cgroup-rule="c 253:* rmw" \
    --device-cgroup-rule="c 13:* rmw" --device-cgroup-rule="c 226:* rmw" \
    --device-cgroup-rule="c 10:223 rmw" --device-cgroup-rule="c 199:0 rmw" \
    torizon/weston-imx8:4 \
    --developer

With the above container running, I now get this error.

 ✔ Container torizon-weston-1  Created                                                                                                                0.0s 
 ✔ Container torizon-qt-1      Created                                                                                                                0.4s 
Attaching to qt-1
qt-1  | qt.qpa.wayland: Failed to initialize EGL display 3001
qt-1  | Hello Torizon!
qt-1  | QRhiGles2: Failed to create temporary context
qt-1  | QRhiGles2: Failed to create context
qt-1  | Failed to create RHI (backend 2)
qt-1  | Failed to initialize graphics backend for OpenGL.
qt-1 exited with code 133