This command is used to allow external applications to connect to the host’s X display.
If you want to display in Docker, it must be run before Docker starts.
Not necessary if you just use fakesink as you said.
Is there another pipe element need EGL display? Even if I just use fakesink, still show “nvbufsurftransform: Could not get EGL display connection” errors.
If this problem can not be fixed( I browse releate topics, not find clear solution so far), do you know some way to automatically run “xhost +” before “docker run” when system boot?
The EGL display is also utilized by nvvideoconvert, so when using DeepStream, I haven’t found any workaround to avoid needing EGL display support.
What I would suggest is disabling X11 on your container by removing DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix . If you need some kind of feedback on the output you can stream it outside the docker using udpsink.