If you are running it on a Linux host, you need to forward the X11 over SSH.
The X server on the host should be enabled for remote connections (note that this turns off access control):
Then you can run your container:
sudo docker run --net=host --env="DISPLAY" --volume="$HOME/.Xauthority:/root/.Xauthority:rw" <DOCKER_IMAGE_NAME>
Note that the container is using the same host network, so ports are the same, exports the $DISPLAY variable to the container and binds the Xauthority file.
You can also do this in your docker-compose.yml. Take a lookat this github repository where I did that:
Hope this helps,