Set Java version 11 of Docker Minecraft Paper server

I got this notification

ヾ (・ ω <) ノ "Thirty-three-three ● Ⅱ Ⅲ

Related article: Set up a Minecraft resource (Spigot) server via docker Set up a Minecraft resource (Spigot) server via docker (2) )

------------------- ↓ Digression from here ↓ -------------------

 ************************************************************
 * WARNING - YOU ARE RUNNING AN OUTDATED VERSION OF JAVA.
 * PAPER WILL STOP BEING COMPATIBLE WITH THIS VERSION OF
 * JAVA WHEN MINECRAFT 1.17 IS RELEASED.
 *
 * Please update the version of Java you use to run Paper
 * to at least Java 11. When Paper for Minecraft 1.17 is
 * released support for versions of Java before 11 will
 * be dropped.
 *
 * Current Java version: 1.8.0_212
 *
 * Check this forum post for more information:
 * https://papermc.io/java11
 ************************************************************

https://papermc.io/forums/t/java-11-mc-1-17-and-paper/5615

The Java version of the Paper server I'm currently using is 8, It is necessary to change to 11 or more in 1.17 (scheduled to be released in 2021) of Minecraft. It's still a long way off, so you can wait until the original Docker image is upgraded, but It's a big deal, so let's upgrade it.

Well, how should I upload it? When I sneaked into the Docker container and investigated whether to update Java, Another Java version of the tag was available.

Tag Description Linux
latest Default. Uses Java version 8 update 212 Alpine Linux
adopt11 Uses Java version 11 latest update Alpine Linux

Reference: https://github.com/itzg/docker-minecraft-server/issues/676

Does that mean I should retype Docker run?


------------------- ↓ The main subject starts here ↓ -------------------

Advance preparation

Look around here

Set up a Minecraft resource (Spigot) server via docker Set up a Minecraft resource (Spigot) server via docker (2) )

Execute docker image with another tag

Click here for repository itzg/minecraft-server

Paper Server

When using Spigot, There are lag-related problems with network operation such as items warping and disappearing. It was patched to make it lighter Paper You can change the execution environment to use in the above repository just by specifying the server name.

PS C:\>  docker run -d -v ~/minecraft_data:/data -p 25565:25565 -e TYPE=PAPER -e EULA=TRUE -e MAX_WORLD_SIZE=10000 -e DIFFICULTY=normal --name mcp02 itzg/minecraft-server:adopt11

Tuinity server

Paper Server also has some weaknesses in multi-user, so Tuinity was made lighter by applying more patches to it.

PS C:\>  docker run -d -v ~/minecraft_data:/data -p 25565:25565 -e TYPE=TUINITY -e EULA=TRUE -e MAX_WORLD_SIZE=10000 -e DIFFICULTY=normal --name mct01 itzg/minecraft-server:adopt11

Recommended Posts

Set Java version 11 of Docker Minecraft Paper server
The story of building a Java version of Minecraft server with GCP (and also set a whitelist)
Set up a MineCraft Paper server on Ubuntu 20.04.1 LTS ② Update
[Java version] The story of serialization
Build a container version of Minecraft server and use https-enabled Dynmap
Java (set)
Easy JSON database experience with Docker ~ Try the latest version of Couchbase Server
[Java] Access the signed URL of s3 (signed version 2)
Install an older version of Docker for Mac
Try the free version of Progate [Java II]
Ubuntu18.04 LTS minecraft server java edition construction memorandum
Minecraft BE server development from PHP to Java
Try the free version of Progate [Java I]
Java version check
/ n \ n docker java
[Java] Overview of Java
[Java] Check the JDK version of the built war file
Summary of revisions (new era) support by Java version
Implementation example of simple LISP processing system (Java version)
Links for each version (Japanese version) of Java SE API