To build Windows Docker images with Java you should have a look at these two pull request.
You can build Docker images with Oracle Java for both windowsservercore and nanoserver.
See pull request oracle/docker-images#209
The official image openjdk
has three Windows variants:
$ docker run --rm mplatform/mquery openjdk
Image: openjdk
* Manifest List: Yes
* Supported platforms:
- linux/amd64
- windows/amd64:10.0.17763.615
- windows/amd64:10.0.17134.885
- windows/amd64:10.0.14393.3085
RedHat has announced the availabilty of OpenJDK for Windows. You can build Docker images with RedHat's OpenJDK for both windowsservercore and nanoserver.
See pull request docker-library/openjdk#88
There are several options where to obtain OpenJDK for Windows.
-
RedHat
-
Azul Systems
-
ojdkbuild/ojdkbuild