• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Running Eclipse inside Docker
#4
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:


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)

  Reply


Messages In This Thread
[SOLVED] Running Eclipse inside Docker - by Rahulsagar - January-13th-2019, 02:27 PM
RE: Running Eclipse inside Docker - by Armin@netPI - January-13th-2019, 04:46 PM
RE: Running Eclipse inside Docker - by Armin@netPI - January-13th-2019, 07:12 PM
RE: Running Eclipse inside Docker - by Armin@netPI - January-14th-2019, 08:18 AM
RE: [SOLVED] Running Eclipse inside Docker - by Rahulsagar - January-18th-2019, 07:44 PM
RE: [SOLVED] Running Eclipse inside Docker - by Armin@netPI - January-19th-2019, 08:33 PM
RE: [SOLVED] Running Eclipse inside Docker - by Rahulsagar - January-21st-2019, 04:03 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  https certificate issues in new nodered docker image Dipro 1 1,734 May-4th-2022, 05:46 AM
Last Post: Armin@netPI
  Docker exposed port don't send data on eth0 COswald 3 3,227 July-15th-2021, 02:10 PM
Last Post: Armin@netPI
  Docker not enabled tad 10 5,023 July-14th-2021, 08:54 AM
Last Post: Armin@netPI
  Docker amd64 instead of arm biancode 3 3,131 January-17th-2021, 09:40 PM
Last Post: Armin@netPI
  docker.service start failed EUROKEY 13 9,497 January-17th-2021, 07:52 PM
Last Post: Armin@netPI
  Get host MAC via REST API inside container bschandra 4 3,765 November-16th-2020, 09:26 AM
Last Post: bschandra
  Docker cannot find image COswald 16 9,257 May-18th-2020, 07:15 AM
Last Post: COswald
  After „Rebuild“ of Docker neither the node-RED nor the dashboard can be accessed MAK 4 4,401 January-31st-2020, 02:14 PM
Last Post: MAK
  [SOLVED] Docker GUI login issue MGharat 1 2,824 September-19th-2019, 11:50 AM
Last Post: Armin@netPI
  [SOLVED] Help with fieldbus node Farani 5 4,090 August-20th-2019, 07:22 AM
Last Post: Armin@netPI

Forum Jump:


Users browsing this thread: 1 Guest(s)