Public | Automated Build

Last pushed: a year ago
Short Description
Docker java images
Full Description

Java Dockerfile

This repository contains Dockerfile of Java for Docker's automated build published to the public Docker Hub Registry.

Base Docker Image

Docker Tags

dockerfile/java provides multiple tagged images:

  • latest (default): OpenJDK Java 7 JRE (alias to openjdk-7-jre)
  • openjdk-6-jdk: OpenJDK Java 6 JDK
  • openjdk-6-jre: OpenJDK Java 6 JRE
  • openjdk-7-jdk: OpenJDK Java 7 JDK
  • openjdk-7-jre: OpenJDK Java 7 JRE
  • oracle-java6: Oracle Java 6 JDK
  • java7: Oracle Java 7 JDK
  • java8: Oracle Java 8 JDK

The java8 image has curl tool installed.

For example, you can run a Oracle Java 8 container with the following command:

docker run -it --rm dockerfile/java:oracle-java8 java -version

Installation

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull dockerfile/java

    (alternatively, you can build an image from Dockerfile: docker build -t="dockerfile/java" github.com/dockerfile/java)

Usage

docker run -it --rm dockerfile/java

Run java

docker run -it --rm dockerfile/java java

Run javac

docker run -it --rm dockerfile/java javac
Docker Pull Command
Owner
robertofilho
Source Repository

Comments (0)