Erorr when linking elements in Pipeline (Deepstream-5.1)

yeah, I can’t…

as I asked in the very early reply - Erorr when linking elements in Pipeline (Deepstream-5.1) - #5 by mchi, did you run “xhost +” successfully, and have the DISPLAY option in the command?

Yes, I did it before I ran the docker
Screenshot from 2021-07-20 12-41-35

Can you share the docker command used?

Sure. Here it is: docker run --gpus all -it --rm -v /home/xteam/Documents/Thuan/deepstream_python_apps:/opt/nvidia/deepstream/deepstream-5.1/sources/deepstream_python_apps -e DISPLAY=$DISPLAY -w /opt/nvidia/deepstream/deepstream-5.1 nvcr.io/nvidia/deepstream:5.1-21.02-triton

Please add -v /tmp/.X11-unix:/tmp/.X11-unix in your docker command.

Oh I forgot that, I thought there can be only one -v in docker command. Thank you very much, problem solved.