Hi
But I’m not sure if this is the best solution.
Please let me know if there is another best method based on this result.
Command used when error occurs.
sudo docker run -it --runtime nvidia --network myappnet --device=/dev/video0:/dev/video0:rwm -e DISPLAY=$DISPLAY -v /tmp/X11-unix:/tmp/X11-unix:rw -v /home/usr/Desktop/work:/work nvcr.io/nvidia/l4t-pytorch:r35.1.0-pth1.12-py3 bash
I changed this to:
sudo docker run -it --runtime nvidia --network host --privileged=true --device=/dev/video0:/dev/video0 -e DISPLAY=$DISPLAY -v /tmp/X11-unix:/tmp/X11-unix -v /home/tes/Desktop/work/tesyolo:/tesyolo nvcr.io/nvidia/l4t-pytorch:r35.1.0-pth1.12-py3 bash
Then, I was able to display the video via GStreamer on the GUI from within the container.