This repo offers paper minecraft servers prebuilt into a container so you don't have to install java, especially on arm systems since OpenJDK availability is extremely dependent on your distro.
To run you can just use the compose.yaml. It contains some script containers to fix permissions and accept the eula.txt.
Start it with docker compose up -d. The server will be available on 0.0.0.0:25565.
The container has no direct CLI interface!
-
Option 1
- Add your self to the ops.json, see the DOCS. Restart the server and you're able to use the CLI in-game
-
Option 2
- Enable 'rcon' and use a client like mcrcon to connect to the server console.
- In the
server.propertiesset the following values:enable-rcon=true ... rcon.password=my-s3cr3t-p4ssw0rd! rcon.port=25575
- restart and connect like this:
mcrcon -H 192.168.X.X -p s3cr3t-p4ssw0rd! -t
I have pre-build some versions for arm64 and amd64 architectures which are available in the GitLab Container Registry.
But you can build other/custom versions too:
- Clone the repo
- Head over to papermc.io and get the Link for you preferred version
- Replace
PAPER_URLin thecompose.yamlin theservices.mc.buildsection - Rebuild the container with
docker compose build
Note: OpenJDK's availability on ARM64 below version 17 is very limited. That's why pre-build versions are not available.
THIS IS STRONGLY DISCOURAGED
I am using the recommended launch options from the papermc project docs.
If you however want to modify something else besides the max RAM usage, you can change the command to whatever you like.
Example:
mc:
# modify launch options here (not recommended)
command:
- /usr/bin/java -Xmx500m -Xmx100m -jar /home/mc/paper.jar nogui