Running GUI in DOCKER?

I have created a java gui application and containerized it . to run the container I am giving the command docker run -ti --rm \ -e DISPLAY=$DISPLAY \ -v /tmp/.X11-unix:/tmp/.X11-unix \ ankitabarbi/filetraversal .It is working fine on linux but when I was trying to run the same image on boot2docker it is throwing the error saying can’t connect to X11 window server using ‘:0’ as the value of the DISPLAY variable . Plese suggest how to proceed

1 Like

DISPLAY format is [host]:0.0 (host is dropped on local machine)
try setting it explicitly as in -e DISPLAY=x.x.x.x:0.0
where x.x.x.x is the IP address the X server is running (ie the display)

Thankyou for the reply.but was solved long back.thank you :slight_smile: