Deepstream-app-trtis demo fail to set pipeline

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) 1050Ti
• DeepStream Version deepstream5.1
• JetPack Version (valid for Jetson only)
• TensorRT Version 11.1
• NVIDIA GPU Driver Version (valid for GPU only) 465.27
• Issue Type( questions, new requirements, bugs) bugs
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)

  1. Pull the DeepStream Triton Inference Server docker]
    docker pull nvcr.io/nvidia/deepstream:5.1-21.02-triton
  2. run the docker
    xhost +
    docker run --gpus all -it --rm -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=$DISPLAY nvcr.io/nvidia/deepstream:5.1-21.02-triton
  3. run deepstream-app-trtis sample
    root@0c13fad1f5fd:/opt/nvidia/deepstream/deepstream-5.1/samples/configs
    /deepstream-app-trtis# deepstream-app -c source1_primary_detector.txt
    ** ERROR: main:655: Failed to set pipeline to PAUSED
    Quitting
    App run failed

before run docker, make sure export DISPLAY=:0 or 1 //xrandr to check if display exported or not. or you can change sink type to 1 Fakesink or 3 File or 4 rtspstreaming

still got the same error before run docker, export DISPLAY=:0 or export DISPLAY=:1

How about results of xrandr within docker? did you run xhost + before run docker?