Running GUI app inside docker in jetson nano

How to run GUI app inside docker who require opengl in jetson nano 2gb developper kit ?

You should type “xhost +” outside the docker. Than, you should pass “-e DISPLAY=:0 -v /tmp/.X11-unix:/tmp/.X11-unix” parameters like:

sudo docker run -it -rm --gpus all -e DISPLAY=:0 -v /tmp/.X11-unix:/tmp/.X11-unix --runtime nvidia --network host nvcr.io/nvidia/l4t-ml:r32.5.0-py

Just for referencing, you can take a look at our blogpost.

Hello ozguryildiz
Thanks for the reply but this doesn’t work for me. I have this message in the picture
image

Can you try this command?

xhost +local:docker

I have this :

I just encounter the subject similiar with your problem here:

https://answers.ros.org/question/301056/ros2-rviz-in-docker-container/

Hello I’ve tried this but I have the same issue.
Rqt_graph app is running but not rviz

Hi,
We have demo samples in

/usr/src/nvidia/graphics_demos

Yo may check if you can run the samples as reference. To clarify whether the issue is specific to certain application.