I am currently trying to run some graphical applications in docker containers. I am trying to use jessie frazelle on github . However, I can create images (or get from the docker hub) and run them without visible errors, but the windows do not appear (I can not see the application).
I am running Docker version 1.13.1 on Ubuntu 16.04
Image is created from:
FROM debian:stretch MAINTAINER Jessie Frazelle < jess@linux.com > RUN apt-get update && apt-get install -y \ libreoffice \ --no-install-recommends \ && rm -rf /var/lib/apt/lists/* ENTRYPOINT [ "libreoffice" ]
the start command that I use is below:
docker run -d \ -v /tmp/.X11-unix:/tmp/.X11-unix \ -v /etc/localtime:/etc/localtime \ -e DISPLAY=unix$DISPLAY -v $HOME/Documents:/root/Documents \ -e GDK_SCALE \ -e GDK_DPI_SCALE \ --name libreoffice \ jess/libreoffice
After searching for many sources, I see that the above should work, and most people say that the following lines are required in the launch command:
-v /tmp/.X11-unix:/tmp/.X11-unix -e DISPLAY=unix$DISPLAY
but still i cant get a window to display.
- How can I make this work?
- What am I fundamentally missing?
Any help would be appreciated.
linux docker containers dockerfile x11-forwarding
David brough
source share