January-14th-2019, 08:18 AM
As expected the missing graphical base system is the root cause of your problem.
For a test I loaded a Desktop image on my netPI from here https://cloud.docker.com/u/hilschernetpi...sktop-hdmi.
After I started a container of the image I opened a console on the screen under the default user "testuser" and called the commands:
Eclipse was starting right away and I was able to click the Eclipse Icons with my mouse.
So your choice using raspbian/stretch as base image is not feasible. I would write a Dockerfile like this instead:
This sequence combines both Desktop and Eclipse environment.
And starting Eclipse itself in a Dockerfile (like you did) does not make sense at all. A Dockerfile creates an offline image and in an image you don't want to start Eclipse ... you want to start Eclipse when a container is started from the image at runtime, right? So start it when the container is running on your netPI using the console.
For a test I loaded a Desktop image on my netPI from here https://cloud.docker.com/u/hilschernetpi...sktop-hdmi.
After I started a container of the image I opened a console on the screen under the default user "testuser" and called the commands:
Code:
> sudo apt-get update
> sudo apt-get install eclipse
> eclipse
Eclipse was starting right away and I was able to click the Eclipse Icons with my mouse.
So your choice using raspbian/stretch as base image is not feasible. I would write a Dockerfile like this instead:
Code:
FROM hilschernetpi/netpi-desktop-hdmi
USER testuser
RUN sudo apt-get update
RUN sudo apt-get install eclipse
This sequence combines both Desktop and Eclipse environment.
And starting Eclipse itself in a Dockerfile (like you did) does not make sense at all. A Dockerfile creates an offline image and in an image you don't want to start Eclipse ... you want to start Eclipse when a container is started from the image at runtime, right? So start it when the container is running on your netPI using the console.
„You never fail until you stop trying.“, Albert Einstein (1879 - 1955)