linuxdockerubuntujmeterx11-forwarding

X11 Display variable is not set - can't run Docker Image


i made a Docker-Image of JMeter because I want to run it remote (and from a cloud). If I run the Image I am getting the error: 'No X11 DISPLAY variable was set, but this program performed an operation which requires it.'

I've updated the ssh_config file and the sshd_config file (as mentioned in similiar questions) but it still don't work.

enter image description here

And my DISPLAY variable is set to localhost:10.0. It's maybe useful to know that i am doing this on a VM on Ubuntu 19.04.

Thanks for your help.


Solution

  • there is NO solution for Docker-Images. Because Docker does not support GUI and therefore i am getting this error. So if you are working with Docker and you are getting this error, just ignore it or update your image to only non-gui.

    Cheers