Eclipse – Docker integration

I’m looking for a way to integrate Docker containers with the Eclipse platform.
I would like to run all build/test/debug command inside containers and use same containers in Continuous Integration build and later in production.

The simplest way I looked on, was just to configure custom command but besides permissions problem (docker must run as sudo/root) it doesn’t give me all the flexibility of real integration.

  • Is it possible to prevent RedHat/CentOS Docker host root access from within a container?
  • Docker images wont run in background
  • Is it possible to execute CMD at the middle of docker file?
  • Persisting database using docker volumes
  • Using Docker in development for Java EE applications
  • Capturing Dockerfile variable in file
  • Any ideas on the best way to proceed?

  • Docker: rails executable file not found in $PATH
  • How to connect to a service running on docker container from withing host MacOS machine?
  • Packer Docker builder using chmod on Windows 10
  • Access cephfs inside docker without mounting cephfs on host
  • How can OpenAI Gym's visualizations work within Docker?
  • Apache Kafka on Docker - stops after few hundred pools
  • 4 Solutions collect form web for “Eclipse – Docker integration”

    it is not a full answer to your question but we (JBoss Tools team) started working on this and here are a few blogs about what is possible todo today and where we are with Eclipse docker tooling.

    To do that, i think you work on a Linux platform 🙂

    What i do for a classic java project :

    • Build a Docker image that contains a jdk and maven for example
    • In Eclipse, via “Run Configurations”, create a “build in Docker” configuration that launch a command like this :
      docker run --rm -v <eclipse_workspace_dir>:/usr/src/myapp -w /usr/src/myapp myrepo/myimage mvn clean install

    it should work.

    For your continuous integration, you can use Docker Jenkins plugin to do the same or with a sh script.

    There is Docker Tooling for Eclipse, available from this update site (you also need to add this update site as for now).

    enter image description hereThese links were very useful to me :

    It is all about Tutorial: Debugging Java Applications in Docker, Install Docker Tooling in Eclipse
    You can also Watch a quick video explaining the key steps in

    To configure remote debugging in Eclipse, click on Run > Debug Configurations…

    Tomcat for instance supports remote debugging the Java Platform Debugger Architecture (JPDA). Make sure that the remote debugging was enabled when the tomcat image (registration-webserver) was built.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.