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

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

Can you try this command?

xhost +local:docker

I have this :

I just encounter the subject similiar with your problem here:

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

We have demo samples in


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