From 55ff76a85d33df9f0f66dee3968513c29126208e Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Wed, 24 Nov 2021 14:39:30 -0600 Subject: [PATCH] docs: clarified java version compatibilities #1130 --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1a7ff69c..1320af64 100644 --- a/README.md +++ b/README.md @@ -270,7 +270,7 @@ the server jar remain in the `/data` directory. It is safe to remove those._ ## Running Minecraft server on different Java version -To use a different version of Java, please use a docker tag to run your Minecraft server. +When using the image `itzg:/minecraft-server` without a tag, the `latest` image tag is implied from the table below. To use a different version of Java, please use an alternate tag to run your Minecraft server container. | Tag name | Java version | Linux | JVM Type | Architecture | | -------------- | -------------|--------|----------|-------------------| @@ -283,11 +283,13 @@ To use a different version of Java, please use a docker tag to run your Minecraf | java16-openj9 | 16 | Debian | OpenJ9 | amd64 | | java17 | 17 | Ubuntu | Hotspot | amd64,arm64,armv7 | -For example, to use Java version 16 on any supported architecture: +For example, to use Java version 8 on any supported architecture: - docker run --name mc itzg/minecraft-server:java16 + docker run --name mc itzg/minecraft-server:java8-multiarch > Keep in mind that some versions of Minecraft server, such as Forge before 1.17, can't work on the newest versions of Java. Instead, one of the Java 8 images should be used. Also, FORGE doesn't support openj9 JVM implementation. +> +> Some versions of vanilla Minecraft, such as 1.10, also do not run correctly with Java 17. If in doubt, use `java8-multiarch` for any version less than 1.17. ### Deprecated Image Tags