
williamyeh/java8Repository name in Docker Hub: williamyeh/java8
This repository contains Dockerized Java 1.8, published to the public Docker Hub via automated build mechanism.
This docker image contains the following software stack:
OS: Debian jessie (built from debian:jessie).
Java: Oracle JDK 1.8.0_31-b13
There has been quite a few Java images for Docker (e.g., search in the Docker Hub), so why reinvent the wheel?
In the beginning I used the pulse00/java. It worked well, but left some room for improvement:
Base OS image - It was built from stackbrew/ubuntu:13.10, which may not be the smallest one. On the other hand, debian:jessie, as recommended in this article, worth a try.
Unnecessary dependencies - It installed, at the very beginning of its Dockerfile, the software-properties-common package, which in turns installed some Python3 packages. I prefered to incorporate these stuff only when absolutely needed.
Therefore, I built this Docker image on my own, also as an exercise.
errordeveloper/oracle-jdk, if you prefer a minimalistic Oracle JDK 8 container on top of busybox.
java or azul/zulu-openjdk, if you prefer OpenJDK.
$ docker pull williamyeh/java8
Used mostly as a base image for other Java-based applications. But if you'd like to use the CLI, here are some examples for you.
java$ docker run --rm williamyeh/java8
javac$ docker run -it --rm williamyeh/java8 javac
$ docker run -it williamyeh/java8 bash
manifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务