3

I am trying to run a GUI app (V-REP) inside docker inspired by what has been suggested at:

http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/

But I'm getting the error:

QXcbConnection: Could not connect to display

I have read answers to similar questions and tried using x11vnc and xauth but keep getting the same error. Im using the Makefile and Dockerfile from here.

I'd appreciate any suggestions and also appreciate instructions on how to actually use a VNC program to connect, since I'm not familiar with that process. Thanks.

The program is run from the makefile:

make docker-run-vrep

If they are useful, here are the current docker setup steps.

wpp
  • 7,093
  • 4
  • 33
  • 65

1 Answers1

0

Try this before running the app:

xhost +

After the app starts, you may want to:

xhost -
rolevax
  • 1,670
  • 1
  • 14
  • 21