Sign inSign up

chrisipa/jdk

By chrisipa

•Updated almost 5 years ago

JDK docker image based on Debian Jessie and Oracle JDK 8.

Image
0

10K+

chrisipa/jdk repository overview

⁠Oracle JDK

JDK docker image based on Debian Jessie and Oracle JDK 8.

⁠Source Code

Sources to build this docker image can be found here⁠.

⁠Description

This Tomcat docker image contains the following software components:

⁠How to run the container

⁠Using docker

⁠Example 1: Run version check in Java container
  1. Run the Java container with the following command:
docker run --rm chrisipa/jdk -version

⁠Advanced topics

⁠Accept self signed SSL certificates from JRE
  1. Create sub folder for trusted SSL certificates:
sudo mkdir -p /opt/ssl/trusted
sudo chown 1000.1000 /opt/ssl/trusted
  1. 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
  1. Run Java container with the commands above and mount folder for trusted SSL certificates:
-v /opt/ssl/trusted:/opt/ssl/trusted

Tag summary

Content type

Image

Digest

Size

146.4 MB

Last updated

almost 5 years ago

docker pull chrisipa/jdk