mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-11-10 10:41:00 +00:00
Auto-merging via docker-versions-create
This commit is contained in:
commit
234d70786e
2 files changed
+7
-5
No files matched your search
@@ -133,7 +133,7 @@ By default, the container will download the latest version of the "vanilla" [Min
|
|||||||
* [Running on RaspberryPi](#running-on-raspberrypi)
|
* [Running on RaspberryPi](#running-on-raspberrypi)
|
||||||
* [Contributing](#contributing)
|
* [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-->
|
<!--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
|
## 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 |
|
| 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 |
|
| java16-openj9 | 16 | Debian | OpenJ9 | amd64 |
|
||||||
| java17 | 17 | Ubuntu | Hotspot | amd64,arm64,armv7 |
|
| 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.
|
> 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
|
### Deprecated Image Tags
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -113,7 +113,7 @@ function normalizeMemSize() {
|
|||||||
|
|
||||||
function versionLessThan() {
|
function versionLessThan() {
|
||||||
local activeParts
|
local activeParts
|
||||||
IFS=. read -ra activeParts <<<"${VANILLA_VERSION}"
|
IFS=. read -ra activeParts <<<"${VANILLA_VERSION%%-*}"
|
||||||
|
|
||||||
local givenParts
|
local givenParts
|
||||||
IFS=. read -ra givenParts <<<"$1"
|
IFS=. read -ra givenParts <<<"$1"
|
||||||
|
|||||||
Reference in new issue
Block a user