Runnin Deepstream on conainer fails to show output on screen and fails pipeline

I am following this blog Deploying Models from TensorFlow Model Zoo Using NVIDIA DeepStream and NVIDIA Triton Inference Server | NVIDIA Technical Blog
I pulled the container and when I run the Deepstream pipeline it fails.
No protocol specified
** ERROR: main:655: Failed to set pipeline to PAUSED
App run failed


** ERROR: main:583: Could not open X Display

The only way to run it is to write the output to file