Repository name in Docker Hub: williamyeh/java7
This docker image contains the following software stack:
OS: Debian jessie (built from debian:jessie).
Java: Oracle JDK 1.7.0_76-b13
Why yet another Java image for Docker?
There has been quite a few Java images for Docker (e.g., search in the Docker Hub), so why reinvent the wheel?
In the beginning I used the pulse00/java. It worked well, but left some room for improvement:
Unnecessary dependencies - It installed, at the very beginning of its Dockerfile, the software-properties-common package, which in turns installed some Python3 packages. I prefered to incorporate these stuff only when absolutely needed.
Therefore, I built this Docker image on my own, also as an exercise.
jeanblanchard/busybox-java, if you prefer a minimalistic Oracle JDK 7 container on top of busybox.
$ docker pull williamyeh/java7
Used mostly as a base image for other Java-based applications. But if you'd like to use the CLI, here are some examples for you.
$ docker run --rm williamyeh/java7
$ docker run -it --rm williamyeh/java7 javac
Dig into container
$ docker run -it williamyeh/java7 bash