JDK docker image based on Debian Jessie and Oracle JDK 8.
Sources to build this docker image can be found here.
This Tomcat docker image contains the following software components:
How to run the container
Example 1: Run version check in Java container
- Run the Java container with the following command:
docker run --rm chrisipa/jdk -version
Accept self signed SSL certificates from JRE
Create sub folder for trusted SSL certificates:
sudo mkdir -p /opt/ssl/trusted sudo chown 1000.1000 /opt/ssl/trusted
Use OpenSSL to download the self signed certificate to trusted SSL certificates folder:
echo "GET /" | openssl s_client -connect my.host.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /opt/ssl/trusted/my-self-signed.crt
Run Java container with the commands above and mount folder for trusted SSL certificates: