mirror of
https://github.com/itzg/docker-minecraft-server
synced 2025-03-05 07:37:19 +00:00
Auto-merging via docker-versions-create
This commit is contained in:
commit
6ee44b3409
2 changed files with 7 additions and 5 deletions
10
README.md
10
README.md
|
@ -133,7 +133,7 @@ By default, the container will download the latest version of the "vanilla" [Min
|
|||
* [Running on RaspberryPi](#running-on-raspberrypi)
|
||||
* [Contributing](#contributing)
|
||||
|
||||
<!-- Added by: runner, at: Tue Nov 23 02:51:46 UTC 2021 -->
|
||||
<!-- Added by: runner, at: Wed Nov 24 20:40:15 UTC 2021 -->
|
||||
|
||||
<!--te-->
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
|
|
@ -113,7 +113,7 @@ function normalizeMemSize() {
|
|||
|
||||
function versionLessThan() {
|
||||
local activeParts
|
||||
IFS=. read -ra activeParts <<<"${VANILLA_VERSION}"
|
||||
IFS=. read -ra activeParts <<<"${VANILLA_VERSION%%-*}"
|
||||
|
||||
local givenParts
|
||||
IFS=. read -ra givenParts <<<"$1"
|
||||
|
|
Loading…
Add table
Reference in a new issue