Public | Automated Build

Last pushed: a year ago
Short Description
Headless Java JRE (OpenJDK) on Debian 8 (Jessie).
Full Description


Headless Java JRE (OpenJDK) on Debian 8 (Jessie).


This production proven image of headless Java on Debian just got a little better... Enjoy!

  • upgraded OS to Debian 8.5
  • upgraded OpenJDK Runtime Environment to 1.8.0_91
  • improved this readme

How to Use

For usage info, just run the image without a command:

$ docker run --rm genebarker/java

Which produces the following:

java - a headless Java JRE on Debian 8 Docker Container

usage: genebarker/java [-options] class [args...]
                      (to execute a class)
   or  genebarker/java [-options] -jar jarfile [args...]
                      (to execute a jar file)

The application home folder is: /root/home

To run the sample HelloWorld.class:
  $ docker run --rm genebarker/java HelloWorld

To run your java app, just mount its folder then run:
  $ docker run --rm \
      -v /home/me/myapps:/root/home \
      genebarker/java MyHelloWorld

To get java command line help:
  $ docker run --rm genebarker/java -help

To bypass script, just enter desired command, i.e.:
  $ docker run -it genebarker/java bash

Java version
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-1~bpo8+1-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

Debian version
Version: 8.5
Kernal: 4.4.0-x86_64-linode63
Docker Pull Command
Source Repository

Comments (0)