We will continue to build on our success as we create a Java 7 container to run our wiki using Tomcat. Before we install the Java application and Tomcat server, we create an empty Java container and use it to connect and test the Postgres DB backend.
First, we need to select an appropriate base image for our Java 7 container. Our journey takes us back to hub.docker.com where we search for (https://hub.docker.com/search?q=java&type=image&image_filter=official&category=base) and find Docker's official Java image. We click on the Java repo, select the Tags tab, and look for the tag associated with the Java version 7 JDK.
There we find the java:7-JDK image as our starting point. Now we will add ...