Cannot run deepstream-test1-app on NX with image pulling from NGC.(nvcr.io/nvidia/deepstream-l4t:5.1-21.02-samples)

Hi @mchi ,

I have a HDMI monitor connect to my NX, and here is the link (The DeepStream image nvcr.io/nvidia/deepstream-l4t:5.1-21.02-samples pulled from NGC to my NVIDIA NX failed to start any application - #23 by a0975003518) the issue I encountered that using

$ xhost +
$ sudo docker run -it --rm --net=host --runtime nvidia --device=/dev/video0:/dev/video0 -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-5.1 -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/deepstream-l4t:5.1-21.02-samples

that’s why I use the command without “-e DISPLAY=$DISPLAY”

sudo docker run -it --rm --net=host --runtime nvidia --device=/dev/video0:/dev/video0 -w /opt/nvidia/deepstream/deepstream-5.1 -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/deepstream-l4t:5.1-21.02-samples