|
|
|
@@ -160,31 +160,24 @@ the server jar remain in the `/data` directory. It is safe to remove those._
|
|
|
|
|
|
|
|
|
|
To use a different version of Java, please use a docker tag to run your Minecraft server.
|
|
|
|
|
|
|
|
|
|
| Tag name | Java version | Linux | JVM Type | Architecture |
|
|
|
|
|
| -------------- | -------------|--------|----------|-------------------|
|
|
|
|
|
| latest | 11 | Alpine | Hotspot | amd64 |
|
|
|
|
|
| java8 | 8 | Alpine | Hotspot | amd64 |
|
|
|
|
|
| java8-multiarch | 8 | Debian | Hotspot | amd64,arm64,armv7 |
|
|
|
|
|
| java15 | 15 | Debian | Hotspot | amd64,arm64,armv7 |
|
|
|
|
|
| adopt11 | 11 | Alpine | Hotspot | amd64 |
|
|
|
|
|
| openj9 | 8 | Alpine | OpenJ9 | amd64 |
|
|
|
|
|
| openj9-11 | 11 | Alpine | OpenJ9 | amd64 |
|
|
|
|
|
| multiarch | 11 | Debian | Hotspot | amd64,arm64,armv7 |
|
|
|
|
|
| multiarch-latest | 15+ | Debian | Hotspot | amd64,arm64,armv7 |
|
|
|
|
|
| Tag name | Description | Linux |
|
|
|
|
|
| -------------- | ------------------------------------------- | ------------ |
|
|
|
|
|
| latest | **Default**. Uses Java version 8 | Alpine Linux |
|
|
|
|
|
| adopt15 | Uses Java version 15 from AdoptOpenJDK | Alpine Linux |
|
|
|
|
|
| adopt14 | Uses Java version 14 from AdoptOpenJDK | Alpine Linux |
|
|
|
|
|
| adopt13 | Uses Java version 13 from AdoptOpenJDK | Alpine Linux |
|
|
|
|
|
| adopt11 | Uses Java version 11 from AdoptOpenJDK | Alpine Linux |
|
|
|
|
|
| openj9 | Uses Eclipse OpenJ9 JVM | Alpine Linux |
|
|
|
|
|
| openj9-11 | Uses Eclipse OpenJ9 JVM for Java 11 | Alpine Linux |
|
|
|
|
|
| openj9-nightly | Uses Eclipse OpenJ9 JVM testing builds | Alpine Linux |
|
|
|
|
|
| multiarch | Uses Java version 8 latest update | Debian Linux |
|
|
|
|
|
| multiarch-latest | Uses Java version 15 latest update | Debian Linux |
|
|
|
|
|
|
|
|
|
|
For example, to use Java version 15 on any supported architecture:
|
|
|
|
|
For example, to use a Java version 13:
|
|
|
|
|
|
|
|
|
|
docker run --name mc itzg/minecraft-server:java15
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
### Deprecated Image Tags
|
|
|
|
|
|
|
|
|
|
The following image tags have been deprecated and are no longer receiving updates:
|
|
|
|
|
- adopt13
|
|
|
|
|
- adopt14
|
|
|
|
|
- adopt15
|
|
|
|
|
- openj9-nightly
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
@@ -515,7 +508,7 @@ A [Catserver](http://catserver.moe/) type server can be used with
|
|
|
|
|
|
|
|
|
|
## Running a server with a Feed the Beast modpack
|
|
|
|
|
|
|
|
|
|
> **NOTE** requires one of the Debian based images listed in [the Java versions section](#running-minecraft-server-on-different-java-version).
|
|
|
|
|
> **NOTE** requires `itzg/minecraft-server:multiarch` image
|
|
|
|
|
|
|
|
|
|
[Feed the Beast application](https://www.feed-the-beast.com/) modpacks are supported by using `-e TYPE=FTBA` (**note** the "A" at the end of the type). This server type will automatically take care of downloading and installing the modpack and appropriate version of Forge, so the `VERSION` does not need to be specified.
|
|
|
|
|
|
|
|
|
@@ -965,7 +958,7 @@ environment variable set to `false`, such as
|
|
|
|
|
### Level Type and Generator Settings
|
|
|
|
|
|
|
|
|
|
By default, a standard world is generated with hills, valleys, water, etc. A different level type can
|
|
|
|
|
be configured by setting `LEVEL_TYPE` to an expected type, for example
|
|
|
|
|
be configured by setting `LEVEL_TYPE` to an expected type, such as
|
|
|
|
|
|
|
|
|
|
- DEFAULT
|
|
|
|
|
- FLAT
|
|
|
|
@@ -973,8 +966,6 @@ be configured by setting `LEVEL_TYPE` to an expected type, for example
|
|
|
|
|
- AMPLIFIED
|
|
|
|
|
- CUSTOMIZED
|
|
|
|
|
- BUFFET
|
|
|
|
|
- BIOMESOP (Biomes O' Plenty for 1.12 and older)
|
|
|
|
|
- BIOMESOPLENTY (Biomes O' Plenty for 1.15 and above)
|
|
|
|
|
|
|
|
|
|
Descriptions are available at the [gamepedia](http://minecraft.gamepedia.com/Server.properties).
|
|
|
|
|
|
|
|
|
@@ -1105,18 +1096,19 @@ is passed to `docker run`.
|
|
|
|
|
|
|
|
|
|
### Memory Limit
|
|
|
|
|
|
|
|
|
|
By default, the image declares an initial and maximum Java memory-heap limit of 1 GB. There are several ways to adjust the memory settings:
|
|
|
|
|
By default, the image declares a Java initial and maximum memory limit of 1 GB. There are several
|
|
|
|
|
ways to adjust the memory settings:
|
|
|
|
|
|
|
|
|
|
- `MEMORY`: "1G" by default, can be used to adjust both initial (`Xms`) and max (`Xmx`) memory heap settings of the JVM
|
|
|
|
|
- `INIT_MEMORY`: independently sets the initial heap size
|
|
|
|
|
- `MAX_MEMORY`: independently sets the max heap size
|
|
|
|
|
- `MEMORY`, "1G" by default, can be used to adjust both initial (`Xms`) and max (`Xmx`)
|
|
|
|
|
memory settings of the JVM
|
|
|
|
|
- `INIT_MEMORY`, independently sets the initial heap size
|
|
|
|
|
- `MAX_MEMORY`, independently sets the max heap size
|
|
|
|
|
|
|
|
|
|
The values of all three are passed directly to the JVM and support format/units as `<size>[g|G|m|M|k|K]`. For example:
|
|
|
|
|
The values of all three are passed directly to the JVM and support format/units as
|
|
|
|
|
`<size>[g|G|m|M|k|K]`. For example:
|
|
|
|
|
|
|
|
|
|
-e MEMORY=2G
|
|
|
|
|
|
|
|
|
|
> NOTE: the settings above only set the Java **heap** limits. Memory resource requests and limits on the overall container should also account for non-heap memory usage. An extra 25% is [a general best practice](https://dzone.com/articles/best-practices-java-memory-arguments-for-container).
|
|
|
|
|
|
|
|
|
|
### JVM Options
|
|
|
|
|
|
|
|
|
|
General JVM options can be passed to the Minecraft Server invocation by passing a `JVM_OPTS`
|
|
|
|
|