yosinski / deep-visualization-toolbox

DeepVis Toolbox
http://yosinski.com/deepvis
MIT License
4.02k stars 924 forks source link

(Deep Visualization Toolbox:29774): Gtk-WARNING **: cannot open display: #83

Open venkatatrived opened 7 years ago

venkatatrived commented 7 years ago

Hi,

I installed caffe using docker. I logged into docker image and pulled the deep visualization code and complied it. When i run the toolbox, i am getting the error above.

I understand that the docker image doesn't contain the display driver or display mode. So, I installed xorg, but i don't know to setup the display settings.

I just started learning caffe and was trying to visualize a model, Please let me if you need more information or if my question is confusing. Thank you in advance.

xxi511 commented 7 years ago

$ nvidia-docker run -it -v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY --name guicontainer cuda 7.5

you can use GUI app in docker you must have -v...DISPLAY

after start container you can use any gui app to test it you might get error like this Error: cannot open display: unix:0 just turn on new terminal in your host os

$ sudo apt-get install x11-xserver-utils
$ xhost + # everyone can access x11

back to container and try again