mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2024-06-07 19:40:43 +00:00
Running Minecraft on a different Java version (#450)
Co-authored-by: Geoff Bourne <itzgeoff@gmail.com>
This commit is contained in:
parent
1aaaf95950
commit
04ed016175
19
README.md
19
README.md
@ -123,6 +123,25 @@ During the next startup, if a newer version is available from the respective rel
|
|||||||
the new server jar file is downloaded and used. _NOTE: over time you might see older versions of
|
the new server jar file is downloaded and used. _NOTE: over time you might see older versions of
|
||||||
the server jar remain in the `/data` directory. It is safe to remove those._
|
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.
|
||||||
|
|
||||||
|
| Tag name | Description | Linux |
|
||||||
|
|---------|-------------|-------|
|
||||||
|
| latest | **Default**. Uses Java version 8 update 212 | Alpine Linux |
|
||||||
|
| adopt13 | Uses Java version 13 latest update | Alpine Linux |
|
||||||
|
| adopt11 | Uses Java version 11 latest update | Alpine Linux |
|
||||||
|
| openj9 | Uses Eclipse OpenJ9 JVM | Alpine Linux |
|
||||||
|
| openj9-nightly | Uses Eclipse OpenJ9 JVM testing builds | Alpine Linux |
|
||||||
|
| multiarch | Uses Java version 8 latest update | Debian Linux |
|
||||||
|
|
||||||
|
For example, to use a Java version 13:
|
||||||
|
|
||||||
|
docker run --name mc itzg/minecraft-server:adopt13
|
||||||
|
|
||||||
|
Keep in mind that some versions of Minecraft server can't work on the newest versions of Java. Also, FORGE doesn't support openj9 JVM implementation.
|
||||||
|
|
||||||
## Healthcheck
|
## Healthcheck
|
||||||
|
|
||||||
This image contains [Dinnerbone's mcstatus](https://github.com/Dinnerbone/mcstatus) and uses
|
This image contains [Dinnerbone's mcstatus](https://github.com/Dinnerbone/mcstatus) and uses
|
||||||
|
Loading…
Reference in New Issue
Block a user