yes i have try that let me share what i have done
xhost +
docker run -it --rm --network=host --gpus all -e DISPLAY=$DISPLAY --device /dev/snd -v /tmp/.X11-unix/:/tmp/.X11-unix nvcr.io/nvidia/deepstream:7.1-gc-triton-devel
inside the docker shell i have run following command
./install.sh
./user_additional_install.sh
./user_deepstream_python_apps_install.sh --build-bindings -r v1.2.0
then i go to
/opt/nvidia/deepstream/deepstream/sources/deepstream_python_apps/apps/deepstream-test1
python3 deepstream_test_1.py /opt/nvidia/deepstream/deepstream/samples/streams/sample_1080p_h264.mp4
i am getting same error