On 03/17/2019 04:28 PM, Gordon Messmer wrote:> On 3/17/19 1:08 PM, H wrote: >> I am correct in that docker cannot be used, or? If it can be used, what changes would I need to make to be able to run geany from a docker? > > > A google search for "run x11 app in docker" returns http://fabiorehm.com/blog/2014/09/11/running-gui-apps-with-docker/ as the first result.? That blog entry suggests running the app in container with the DISPLAY environment variable, and with the /tmp/.X11-unix directory shared so that the X11 unix sockets are available in the container: > > |docker run -ti --rm \ -e DISPLAY=$DISPLAY \ -v /tmp/.X11-unix:/tmp/.X11-unix \ geany | > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centosThank you, visited that page and tried the above but get the following messages: No protocol specified Geany: cannot open display Perhaps there is something else I have to set up in the container?
On 3/18/19 6:05 PM, H wrote:> Thank you, visited that page and tried the above but get the following messages: > > No protocol specified > Geany: cannot open displayCan you copy the text of the command you ran and its output from your terminal, and paste that in a reply email? Also, run the command a second time, but add "echo -- " at the beginning so you can see how variables are expanded.? Include that command and output in your reply.
On 03/18/2019 09:32 PM, Gordon Messmer wrote:> On 3/18/19 6:05 PM, H wrote: >> Thank you, visited that page and tried the above but get the following messages: >> >> No protocol specified >> Geany: cannot open display > > > Can you copy the text of the command you ran and its output from your terminal, and paste that in a reply email? > > Also, run the command a second time, but add "echo -- " at the beginning so you can see how variables are expanded.? Include that command and output in your reply. > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centosThink I got it to work now, I needed to add the RUN export ... at the page you linked to. I can now get geany to open, have not yet figured out how to be able to access files on the host computer...