<!--

********************************************************************************

WARNING:

    DO NOT EDIT "openjdk/README.md"

    IT IS AUTO-GENERATED

    (from the other files in "openjdk/" combined with a set of templates)

********************************************************************************

-->

# Quick reference

-	**Maintained by**:  
	[the Docker Community](https://github.com/docker-library/openjdk)

-	**Where to get help**:  
	[the Docker Community Forums](https://forums.docker.com/), [the Docker Community Slack](https://dockr.ly/slack), or [Stack Overflow](https://stackoverflow.com/search?tab=newest&q=docker)

# Supported tags and respective `Dockerfile` links

(See ["What's the difference between 'Shared' and 'Simple' tags?" in the FAQ](https://github.com/docker-library/faq#whats-the-difference-between-shared-and-simple-tags).)

## Simple Tags

-	[`16-ea-11-jdk-oraclelinux7`, `16-ea-11-oraclelinux7`, `16-ea-jdk-oraclelinux7`, `16-ea-oraclelinux7`, `16-jdk-oraclelinux7`, `16-oraclelinux7`, `16-ea-11-jdk-oracle`, `16-ea-11-oracle`, `16-ea-jdk-oracle`, `16-ea-oracle`, `16-jdk-oracle`, `16-oracle`](https://github.com/docker-library/openjdk/blob/00da66800f522f7aec978e6599ec24ffba31b7c5/16/jdk/oraclelinux7/Dockerfile)
-	[`16-ea-11-jdk-buster`, `16-ea-11-buster`, `16-ea-jdk-buster`, `16-ea-buster`, `16-jdk-buster`, `16-buster`](https://github.com/docker-library/openjdk/blob/00da66800f522f7aec978e6599ec24ffba31b7c5/16/jdk/buster/Dockerfile)
-	[`16-ea-11-jdk-slim-buster`, `16-ea-11-slim-buster`, `16-ea-jdk-slim-buster`, `16-ea-slim-buster`, `16-jdk-slim-buster`, `16-slim-buster`, `16-ea-11-jdk-slim`, `16-ea-11-slim`, `16-ea-jdk-slim`, `16-ea-slim`, `16-jdk-slim`, `16-slim`](https://github.com/docker-library/openjdk/blob/00da66800f522f7aec978e6599ec24ffba31b7c5/16/jdk/slim-buster/Dockerfile)
-	[`16-ea-5-jdk-alpine3.12`, `16-ea-5-alpine3.12`, `16-ea-jdk-alpine3.12`, `16-ea-alpine3.12`, `16-jdk-alpine3.12`, `16-alpine3.12`, `16-ea-5-jdk-alpine`, `16-ea-5-alpine`, `16-ea-jdk-alpine`, `16-ea-alpine`, `16-jdk-alpine`, `16-alpine`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/16/jdk/alpine3.12/Dockerfile)
-	[`16-ea-11-jdk-windowsservercore-1809`, `16-ea-11-windowsservercore-1809`, `16-ea-jdk-windowsservercore-1809`, `16-ea-windowsservercore-1809`, `16-jdk-windowsservercore-1809`, `16-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/00da66800f522f7aec978e6599ec24ffba31b7c5/16/jdk/windows/windowsservercore-1809/Dockerfile)
-	[`16-ea-11-jdk-windowsservercore-ltsc2016`, `16-ea-11-windowsservercore-ltsc2016`, `16-ea-jdk-windowsservercore-ltsc2016`, `16-ea-windowsservercore-ltsc2016`, `16-jdk-windowsservercore-ltsc2016`, `16-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/00da66800f522f7aec978e6599ec24ffba31b7c5/16/jdk/windows/windowsservercore-ltsc2016/Dockerfile)
-	[`16-ea-11-jdk-nanoserver-1809`, `16-ea-11-nanoserver-1809`, `16-ea-jdk-nanoserver-1809`, `16-ea-nanoserver-1809`, `16-jdk-nanoserver-1809`, `16-nanoserver-1809`](https://github.com/docker-library/openjdk/blob/00da66800f522f7aec978e6599ec24ffba31b7c5/16/jdk/windows/nanoserver-1809/Dockerfile)
-	[`15-jdk-oraclelinux7`, `15-oraclelinux7`, `15-jdk-oracle`, `15-oracle`](https://github.com/docker-library/openjdk/blob/82d5067061455260f202a00c42ce372d43038be0/15/jdk/oraclelinux7/Dockerfile)
-	[`15-jdk-buster`, `15-buster`](https://github.com/docker-library/openjdk/blob/82d5067061455260f202a00c42ce372d43038be0/15/jdk/buster/Dockerfile)
-	[`15-jdk-slim-buster`, `15-slim-buster`, `15-jdk-slim`, `15-slim`](https://github.com/docker-library/openjdk/blob/82d5067061455260f202a00c42ce372d43038be0/15/jdk/slim-buster/Dockerfile)
-	[`15-jdk-windowsservercore-1809`, `15-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/73bb0adbae399094463dec65d1cdec506860c7e2/15/jdk/windows/windowsservercore-1809/Dockerfile)
-	[`15-jdk-windowsservercore-ltsc2016`, `15-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/73bb0adbae399094463dec65d1cdec506860c7e2/15/jdk/windows/windowsservercore-ltsc2016/Dockerfile)
-	[`15-jdk-nanoserver-1809`, `15-nanoserver-1809`](https://github.com/docker-library/openjdk/blob/9338202f5a42dca095a4ec0abb14433458da5cc6/15/jdk/windows/nanoserver-1809/Dockerfile)
-	[`14.0.2-jdk-oraclelinux7`, `14.0.2-oraclelinux7`, `14.0-jdk-oraclelinux7`, `14.0-oraclelinux7`, `14-jdk-oraclelinux7`, `14-oraclelinux7`, `jdk-oraclelinux7`, `oraclelinux7`, `14.0.2-jdk-oracle`, `14.0.2-oracle`, `14.0-jdk-oracle`, `14.0-oracle`, `14-jdk-oracle`, `14-oracle`, `jdk-oracle`, `oracle`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/14/jdk/oraclelinux7/Dockerfile)
-	[`14.0.2-jdk-buster`, `14.0.2-buster`, `14.0-jdk-buster`, `14.0-buster`, `14-jdk-buster`, `14-buster`, `jdk-buster`, `buster`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/14/jdk/buster/Dockerfile)
-	[`14.0.2-jdk-slim-buster`, `14.0.2-slim-buster`, `14.0-jdk-slim-buster`, `14.0-slim-buster`, `14-jdk-slim-buster`, `14-slim-buster`, `jdk-slim-buster`, `slim-buster`, `14.0.2-jdk-slim`, `14.0.2-slim`, `14.0-jdk-slim`, `14.0-slim`, `14-jdk-slim`, `14-slim`, `jdk-slim`, `slim`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/14/jdk/slim-buster/Dockerfile)
-	[`14.0.2-jdk-windowsservercore-1809`, `14.0.2-windowsservercore-1809`, `14.0-jdk-windowsservercore-1809`, `14.0-windowsservercore-1809`, `14-jdk-windowsservercore-1809`, `14-windowsservercore-1809`, `jdk-windowsservercore-1809`, `windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/14/jdk/windows/windowsservercore-1809/Dockerfile)
-	[`14.0.2-jdk-windowsservercore-ltsc2016`, `14.0.2-windowsservercore-ltsc2016`, `14.0-jdk-windowsservercore-ltsc2016`, `14.0-windowsservercore-ltsc2016`, `14-jdk-windowsservercore-ltsc2016`, `14-windowsservercore-ltsc2016`, `jdk-windowsservercore-ltsc2016`, `windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/14/jdk/windows/windowsservercore-ltsc2016/Dockerfile)
-	[`14.0.2-jdk-nanoserver-1809`, `14.0.2-nanoserver-1809`, `14.0-jdk-nanoserver-1809`, `14.0-nanoserver-1809`, `14-jdk-nanoserver-1809`, `14-nanoserver-1809`, `jdk-nanoserver-1809`, `nanoserver-1809`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/14/jdk/windows/nanoserver-1809/Dockerfile)
-	[`11.0.8-jdk-buster`, `11.0.8-buster`, `11.0-jdk-buster`, `11.0-buster`, `11-jdk-buster`, `11-buster`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jdk/buster/Dockerfile)
-	[`11.0.8-jdk-slim-buster`, `11.0.8-slim-buster`, `11.0-jdk-slim-buster`, `11.0-slim-buster`, `11-jdk-slim-buster`, `11-slim-buster`, `11.0.8-jdk-slim`, `11.0.8-slim`, `11.0-jdk-slim`, `11.0-slim`, `11-jdk-slim`, `11-slim`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jdk/slim-buster/Dockerfile)
-	[`11.0.8-jdk-windowsservercore-1809`, `11.0.8-windowsservercore-1809`, `11.0-jdk-windowsservercore-1809`, `11.0-windowsservercore-1809`, `11-jdk-windowsservercore-1809`, `11-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jdk/windows/windowsservercore-1809/Dockerfile)
-	[`11.0.8-jdk-windowsservercore-ltsc2016`, `11.0.8-windowsservercore-ltsc2016`, `11.0-jdk-windowsservercore-ltsc2016`, `11.0-windowsservercore-ltsc2016`, `11-jdk-windowsservercore-ltsc2016`, `11-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jdk/windows/windowsservercore-ltsc2016/Dockerfile)
-	[`11.0.8-jdk-nanoserver-1809`, `11.0.8-nanoserver-1809`, `11.0-jdk-nanoserver-1809`, `11.0-nanoserver-1809`, `11-jdk-nanoserver-1809`, `11-nanoserver-1809`](https://github.com/docker-library/openjdk/blob/601cc5f946f8ada75d8b8eaa1eb3f4c4b821ac23/11/jdk/windows/nanoserver-1809/Dockerfile)
-	[`11.0.8-jre-buster`, `11.0-jre-buster`, `11-jre-buster`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jre/buster/Dockerfile)
-	[`11.0.8-jre-slim-buster`, `11.0-jre-slim-buster`, `11-jre-slim-buster`, `11.0.8-jre-slim`, `11.0-jre-slim`, `11-jre-slim`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jre/slim-buster/Dockerfile)
-	[`11.0.8-jre-windowsservercore-1809`, `11.0-jre-windowsservercore-1809`, `11-jre-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jre/windows/windowsservercore-1809/Dockerfile)
-	[`11.0.8-jre-windowsservercore-ltsc2016`, `11.0-jre-windowsservercore-ltsc2016`, `11-jre-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jre/windows/windowsservercore-ltsc2016/Dockerfile)
-	[`11.0.8-jre-nanoserver-1809`, `11.0-jre-nanoserver-1809`, `11-jre-nanoserver-1809`](https://github.com/docker-library/openjdk/blob/601cc5f946f8ada75d8b8eaa1eb3f4c4b821ac23/11/jre/windows/nanoserver-1809/Dockerfile)
-	[`8u265-jdk-buster`, `8u265-buster`, `8-jdk-buster`, `8-buster`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jdk/buster/Dockerfile)
-	[`8u265-jdk-slim-buster`, `8u265-slim-buster`, `8-jdk-slim-buster`, `8-slim-buster`, `8u265-jdk-slim`, `8u265-slim`, `8-jdk-slim`, `8-slim`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jdk/slim-buster/Dockerfile)
-	[`8u265-jdk-windowsservercore-1809`, `8u265-windowsservercore-1809`, `8-jdk-windowsservercore-1809`, `8-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jdk/windows/windowsservercore-1809/Dockerfile)
-	[`8u265-jdk-windowsservercore-ltsc2016`, `8u265-windowsservercore-ltsc2016`, `8-jdk-windowsservercore-ltsc2016`, `8-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jdk/windows/windowsservercore-ltsc2016/Dockerfile)
-	[`8u265-jdk-nanoserver-1809`, `8u265-nanoserver-1809`, `8-jdk-nanoserver-1809`, `8-nanoserver-1809`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jdk/windows/nanoserver-1809/Dockerfile)
-	[`8u265-jre-buster`, `8-jre-buster`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jre/buster/Dockerfile)
-	[`8u265-jre-slim-buster`, `8-jre-slim-buster`, `8u265-jre-slim`, `8-jre-slim`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jre/slim-buster/Dockerfile)
-	[`8u265-jre-windowsservercore-1809`, `8-jre-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jre/windows/windowsservercore-1809/Dockerfile)
-	[`8u265-jre-windowsservercore-ltsc2016`, `8-jre-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jre/windows/windowsservercore-ltsc2016/Dockerfile)
-	[`8u265-jre-nanoserver-1809`, `8-jre-nanoserver-1809`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jre/windows/nanoserver-1809/Dockerfile)

## Shared Tags

-	`16-ea-11-jdk`, `16-ea-11`, `16-ea-jdk`, `16-ea`, `16-jdk`, `16`:
	-	[`16-ea-11-jdk-oraclelinux7`](https://github.com/docker-library/openjdk/blob/00da66800f522f7aec978e6599ec24ffba31b7c5/16/jdk/oraclelinux7/Dockerfile)
	-	[`16-ea-11-jdk-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/00da66800f522f7aec978e6599ec24ffba31b7c5/16/jdk/windows/windowsservercore-1809/Dockerfile)
	-	[`16-ea-11-jdk-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/00da66800f522f7aec978e6599ec24ffba31b7c5/16/jdk/windows/windowsservercore-ltsc2016/Dockerfile)
-	`16-ea-11-jdk-windowsservercore`, `16-ea-11-windowsservercore`, `16-ea-jdk-windowsservercore`, `16-ea-windowsservercore`, `16-jdk-windowsservercore`, `16-windowsservercore`:
	-	[`16-ea-11-jdk-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/00da66800f522f7aec978e6599ec24ffba31b7c5/16/jdk/windows/windowsservercore-1809/Dockerfile)
	-	[`16-ea-11-jdk-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/00da66800f522f7aec978e6599ec24ffba31b7c5/16/jdk/windows/windowsservercore-ltsc2016/Dockerfile)
-	`16-ea-11-jdk-nanoserver`, `16-ea-11-nanoserver`, `16-ea-jdk-nanoserver`, `16-ea-nanoserver`, `16-jdk-nanoserver`, `16-nanoserver`:
	-	[`16-ea-11-jdk-nanoserver-1809`](https://github.com/docker-library/openjdk/blob/00da66800f522f7aec978e6599ec24ffba31b7c5/16/jdk/windows/nanoserver-1809/Dockerfile)
-	`15-jdk`, `15`:
	-	[`15-jdk-oraclelinux7`](https://github.com/docker-library/openjdk/blob/82d5067061455260f202a00c42ce372d43038be0/15/jdk/oraclelinux7/Dockerfile)
	-	[`15-jdk-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/73bb0adbae399094463dec65d1cdec506860c7e2/15/jdk/windows/windowsservercore-1809/Dockerfile)
	-	[`15-jdk-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/73bb0adbae399094463dec65d1cdec506860c7e2/15/jdk/windows/windowsservercore-ltsc2016/Dockerfile)
-	`15-jdk-windowsservercore`, `15-windowsservercore`:
	-	[`15-jdk-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/73bb0adbae399094463dec65d1cdec506860c7e2/15/jdk/windows/windowsservercore-1809/Dockerfile)
	-	[`15-jdk-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/73bb0adbae399094463dec65d1cdec506860c7e2/15/jdk/windows/windowsservercore-ltsc2016/Dockerfile)
-	`15-jdk-nanoserver`, `15-nanoserver`:
	-	[`15-jdk-nanoserver-1809`](https://github.com/docker-library/openjdk/blob/9338202f5a42dca095a4ec0abb14433458da5cc6/15/jdk/windows/nanoserver-1809/Dockerfile)
-	`14.0.2-jdk`, `14.0.2`, `14.0-jdk`, `14.0`, `14-jdk`, `14`, `jdk`, `latest`:
	-	[`14.0.2-jdk-oraclelinux7`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/14/jdk/oraclelinux7/Dockerfile)
	-	[`14.0.2-jdk-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/14/jdk/windows/windowsservercore-1809/Dockerfile)
	-	[`14.0.2-jdk-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/14/jdk/windows/windowsservercore-ltsc2016/Dockerfile)
-	`14.0.2-jdk-windowsservercore`, `14.0.2-windowsservercore`, `14.0-jdk-windowsservercore`, `14.0-windowsservercore`, `14-jdk-windowsservercore`, `14-windowsservercore`, `jdk-windowsservercore`, `windowsservercore`:
	-	[`14.0.2-jdk-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/14/jdk/windows/windowsservercore-1809/Dockerfile)
	-	[`14.0.2-jdk-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/14/jdk/windows/windowsservercore-ltsc2016/Dockerfile)
-	`14.0.2-jdk-nanoserver`, `14.0.2-nanoserver`, `14.0-jdk-nanoserver`, `14.0-nanoserver`, `14-jdk-nanoserver`, `14-nanoserver`, `jdk-nanoserver`, `nanoserver`:
	-	[`14.0.2-jdk-nanoserver-1809`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/14/jdk/windows/nanoserver-1809/Dockerfile)
-	`11.0.8-jdk`, `11.0.8`, `11.0-jdk`, `11.0`, `11-jdk`, `11`:
	-	[`11.0.8-jdk-buster`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jdk/buster/Dockerfile)
	-	[`11.0.8-jdk-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jdk/windows/windowsservercore-1809/Dockerfile)
	-	[`11.0.8-jdk-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jdk/windows/windowsservercore-ltsc2016/Dockerfile)
-	`11.0.8-jdk-windowsservercore`, `11.0.8-windowsservercore`, `11.0-jdk-windowsservercore`, `11.0-windowsservercore`, `11-jdk-windowsservercore`, `11-windowsservercore`:
	-	[`11.0.8-jdk-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jdk/windows/windowsservercore-1809/Dockerfile)
	-	[`11.0.8-jdk-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jdk/windows/windowsservercore-ltsc2016/Dockerfile)
-	`11.0.8-jdk-nanoserver`, `11.0.8-nanoserver`, `11.0-jdk-nanoserver`, `11.0-nanoserver`, `11-jdk-nanoserver`, `11-nanoserver`:
	-	[`11.0.8-jdk-nanoserver-1809`](https://github.com/docker-library/openjdk/blob/601cc5f946f8ada75d8b8eaa1eb3f4c4b821ac23/11/jdk/windows/nanoserver-1809/Dockerfile)
-	`11.0.8-jre`, `11.0-jre`, `11-jre`:
	-	[`11.0.8-jre-buster`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jre/buster/Dockerfile)
	-	[`11.0.8-jre-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jre/windows/windowsservercore-1809/Dockerfile)
	-	[`11.0.8-jre-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jre/windows/windowsservercore-ltsc2016/Dockerfile)
-	`11.0.8-jre-windowsservercore`, `11.0-jre-windowsservercore`, `11-jre-windowsservercore`:
	-	[`11.0.8-jre-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jre/windows/windowsservercore-1809/Dockerfile)
	-	[`11.0.8-jre-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/83fbf16d99f4094df192b4f07909b473ad1d8392/11/jre/windows/windowsservercore-ltsc2016/Dockerfile)
-	`11.0.8-jre-nanoserver`, `11.0-jre-nanoserver`, `11-jre-nanoserver`:
	-	[`11.0.8-jre-nanoserver-1809`](https://github.com/docker-library/openjdk/blob/601cc5f946f8ada75d8b8eaa1eb3f4c4b821ac23/11/jre/windows/nanoserver-1809/Dockerfile)
-	`8u265-jdk`, `8u265`, `8-jdk`, `8`:
	-	[`8u265-jdk-buster`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jdk/buster/Dockerfile)
	-	[`8u265-jdk-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jdk/windows/windowsservercore-1809/Dockerfile)
	-	[`8u265-jdk-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jdk/windows/windowsservercore-ltsc2016/Dockerfile)
-	`8u265-jdk-windowsservercore`, `8u265-windowsservercore`, `8-jdk-windowsservercore`, `8-windowsservercore`:
	-	[`8u265-jdk-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jdk/windows/windowsservercore-1809/Dockerfile)
	-	[`8u265-jdk-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jdk/windows/windowsservercore-ltsc2016/Dockerfile)
-	`8u265-jdk-nanoserver`, `8u265-nanoserver`, `8-jdk-nanoserver`, `8-nanoserver`:
	-	[`8u265-jdk-nanoserver-1809`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jdk/windows/nanoserver-1809/Dockerfile)
-	`8u265-jre`, `8-jre`:
	-	[`8u265-jre-buster`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jre/buster/Dockerfile)
	-	[`8u265-jre-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jre/windows/windowsservercore-1809/Dockerfile)
	-	[`8u265-jre-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jre/windows/windowsservercore-ltsc2016/Dockerfile)
-	`8u265-jre-windowsservercore`, `8-jre-windowsservercore`:
	-	[`8u265-jre-windowsservercore-1809`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jre/windows/windowsservercore-1809/Dockerfile)
	-	[`8u265-jre-windowsservercore-ltsc2016`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jre/windows/windowsservercore-ltsc2016/Dockerfile)
-	`8u265-jre-nanoserver`, `8-jre-nanoserver`:
	-	[`8u265-jre-nanoserver-1809`](https://github.com/docker-library/openjdk/blob/a24dae42b2b0c544916c714128e870c00e4c4888/8/jre/windows/nanoserver-1809/Dockerfile)

# Quick reference (cont.)

-	**Where to file issues**:  
	[https://github.com/docker-library/openjdk/issues](https://github.com/docker-library/openjdk/issues)

-	**Supported architectures**: ([more info](https://github.com/docker-library/official-images#architectures-other-than-amd64))  
	[`amd64`](https://hub.docker.com/r/amd64/openjdk/), [`arm64v8`](https://hub.docker.com/r/arm64v8/openjdk/), [`windows-amd64`](https://hub.docker.com/r/winamd64/openjdk/)

-	**Published image artifact details**:  
	[repo-info repo's `repos/openjdk/` directory](https://github.com/docker-library/repo-info/blob/master/repos/openjdk) ([history](https://github.com/docker-library/repo-info/commits/master/repos/openjdk))  
	(image metadata, transfer size, etc)

-	**Image updates**:  
	[official-images PRs with label `library/openjdk`](https://github.com/docker-library/official-images/pulls?q=label%3Alibrary%2Fopenjdk)  
	[official-images repo's `library/openjdk` file](https://github.com/docker-library/official-images/blob/master/library/openjdk) ([history](https://github.com/docker-library/official-images/commits/master/library/openjdk))

-	**Source of this description**:  
	[docs repo's `openjdk/` directory](https://github.com/docker-library/docs/tree/master/openjdk) ([history](https://github.com/docker-library/docs/commits/master/openjdk))

# What is OpenJDK?

OpenJDK (Open Java Development Kit) is a free and open source implementation of the Java Platform, Standard Edition (Java SE). OpenJDK is the official reference implementation of Java SE since version 7.

> [wikipedia.org/wiki/OpenJDK](http://en.wikipedia.org/wiki/OpenJDK)

Java is a registered trademark of Oracle and/or its affiliates.

![logo](https://raw.githubusercontent.com/docker-library/docs/a3439b66b7980d1811f6b3835a3c541747172970/openjdk/logo.png)

# How to use this image

## Start a Java instance in your app

The most straightforward way to use this image is to use a Java container as both the build and runtime environment. In your `Dockerfile`, writing something along the lines of the following will compile and run your project:

```dockerfile
FROM openjdk:7
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
RUN javac Main.java
CMD ["java", "Main"]
```

You can then run and build the Docker image:

```console
$ docker build -t my-java-app .
$ docker run -it --rm --name my-running-app my-java-app
```

## Compile your app inside the Docker container

There may be occasions where it is not appropriate to run your app inside a container. To compile, but not run your app inside the Docker instance, you can write something like:

```console
$ docker run --rm -v "$PWD":/usr/src/myapp -w /usr/src/myapp openjdk:7 javac Main.java
```

This will add your current directory as a volume to the container, set the working directory to the volume, and run the command `javac Main.java` which will tell Java to compile the code in `Main.java` and output the Java class file to `Main.class`.

## Make JVM respect CPU and RAM limits

On startup the JVM tries to detect the number of available CPU cores and RAM to adjust its internal parameters (like the number of garbage collector threads to spawn) accordingly. When the container is ran with limited CPU/RAM then the standard system API used by the JVM for probing it will return host-wide values. This can cause excessive CPU usage and memory allocation errors with older versions of the JVM.

Inside Linux containers, OpenJDK versions 8 and later can correctly detect the container-limited number of CPU cores and available RAM. For all currently supported OpenJDK versions this is turned on by default.

Inside Windows Server (non-Hyper-V) containers, the limit for the number of available CPU cores doesn't work (it's ignored by Host Compute Service). To set the limit manually the JVM can be started as:

```console
$ start /b /wait /affinity 0x3 path/to/java.exe ...
```

In this example CPU affinity hex mask `0x3` will limit the JVM to 2 CPU cores.

RAM limit is supported by Windows Server containers, but currently the JVM cannot detect it. To prevent excessive memory allocations, `-XX:MaxRAM=...` option must be specified with the value that is not bigger than the containers RAM limit.

## Environment variables with periods in their names

Some shells (notably, [the BusyBox `/bin/sh` included in Alpine Linux](https://github.com/docker-library/openjdk/issues/135)) do not support environment variables with periods in the names (which are technically not POSIX compliant), and thus *strip* them instead of passing them through (as Bash does). If your application requires environment variables of this form, either use `CMD ["java", ...]` directly (no shell), or (install and) use Bash explicitly instead of `/bin/sh`.

# Image Variants

The `openjdk` images come in many flavors, each designed for a specific use case.

## `openjdk:<version>`

This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of.

Some of these tags may have names like buster in them. These are the suite code names for releases of [Debian](https://wiki.debian.org/DebianReleases) and indicate which release the image is based on. If your image needs to install any additional packages beyond what comes with the image, you'll likely want to specify one of these explicitly to minimize breakage when there are new releases of Debian.

## `openjdk:<version>` (from 12 onwards), `openjdk:<version>-oracle` and `openjdk:<version>-oraclelinux7`

Starting with `openjdk:12` the default image as well as the `-oracle` and `-oraclelinux7` variants are based on the official [Oracle Linux 7 image](https://hub.docker.com/_/oraclelinux) which is provided under the GPLv2 as per the [Oracle Linux End User Agreement (EULA)](https://oss.oracle.com/ol7/EULA).

The OpenJDK binaries in the default image as well as the `-oracle` and `-oraclelinux7` variants are built by Oracle and are sourced from the [OpenJDK community](https://openjdk.java.net/). These binaries are licensed under the [GPLv2 with the Classpath Exception](https://openjdk.java.net/legal/gplv2+ce.html).

## `openjdk:<version>-alpine`

This image is based on the popular [Alpine Linux project](https://alpinelinux.org), available in [the `alpine` official image](https://hub.docker.com/_/alpine). Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.

This variant is highly recommended when final image size being as small as possible is desired. The main caveat to note is that it does use [musl libc](https://musl.libc.org) instead of [glibc and friends](https://www.etalabs.net/compare_libcs.html), so certain software might run into issues depending on the depth of their libc requirements. However, most software doesn't have an issue with this, so this variant is usually a very safe choice. See [this Hacker News comment thread](https://news.ycombinator.com/item?id=10782897) for more discussion of the issues that might arise and some pro/con comparisons of using Alpine-based images.

To minimize image size, it's uncommon for additional related tools (such as `git` or `bash`) to be included in Alpine-based images. Using this image as a base, add the things you need in your own Dockerfile (see the [`alpine` image description](https://hub.docker.com/_/alpine/) for examples of how to install packages if you are unfamiliar).

## `openjdk:<version>-windowsservercore`

This image is based on [Windows Server Core (`microsoft/windowsservercore`)](https://hub.docker.com/r/microsoft/windowsservercore/). As such, it only works in places which that image does, such as Windows 10 Professional/Enterprise (Anniversary Edition) or Windows Server 2016.

For information about how to get Docker running on Windows, please see the relevant "Quick Start" guide provided by Microsoft:

-	[Windows Server Quick Start](https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start_windows_server)
-	[Windows 10 Quick Start](https://msdn.microsoft.com/en-us/virtualization/windowscontainers/quick_start/quick_start_windows_10)

# License

View [license information](http://openjdk.java.net/legal/gplv2+ce.html) for the software contained in this image.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

Some additional license information which was able to be auto-detected might be found in [the `repo-info` repository's `openjdk/` directory](https://github.com/docker-library/repo-info/tree/master/repos/openjdk).

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.
