I’m almost sure that there is no way (yet?) to run graphical applications within a Docker on a Windows host.
However you could still compile inside the docker (with the Java eco-system) and run Eclipse (or any other IDE) from your windows, by using volumes. But Java is embedded by Eclipse if I’m right… So I don’t know what IDE you could use and not sure how to get all their features (IDE usually compile at every line you write to show compilation error graphically).
Anyway… My point is that you can use any IDE you like to edit your code, and any compiler you like (or even ANT, or MAVEN or ..) to compile inside a Docker.
Read more here: Source link