Skip to content
This repository was archived by the owner on May 3, 2021. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

15 Commits

Repository files navigation

papermc-docker

A hassle free docker image that allows running a PaperMc Minecraft server in no time. For Linux.

For vanilla Minecraft server, visit - Docker Hub page, GitHub page.

Usage

To use the latest stable version of Minecraft and latest build of PaperMc, run

sudo docker run -p 25565:25565 -v /root/papermc_server:/papermc_server -d -ti --restart unless-stopped -e EULA=true layoutxml/papermc-docker

Options

Arguments

The following arguments can be passed at build time as build arguments (--build-arg EULA=true) or at the run time as environment variables (-e EULA=true). They will be saved and remembered for each subsequent run, unless conflicting argument is passed.

NameDefault valueNote
EULAfalseYou must agree to Minecraft's EULA
JDK_VERSION14-slimThis is the latest currently allowed OpenJDK version. Feel free to change it in the future. This argument can only be used as a build argument.
FOLDER_NAMEpapermc_serverUseful to change when running multiple servers.
PROJECT_NAMEpaperPaperMc project name. paper / waterfall / travertine.
MINECRAFT_VERSIONIf no version specified, will use the latest stable version.
PAPERMC_VERSIONlatestIf no version specified, will use the latest PaperMc build.
RAM1024MServer RAM. M for MB, G for GB.
JAVA_ARGSAdditional java args.

Useful Docker Arguments

NameArgumentNote
Port-p 25565:25565You must use this argument to map default 25565 port (on the right) to any open port (on the left). Without it, the port will remain closed.
Volume-v /root/papermc_server:/papermc_serverYou must use this argument to map default papermc_server folder to a folder on your machine. Without it, the data will be lost when container stops.
Detached-dRun docker container in a detached way, allowing use of console for other tasks.
Interactive-tiAllows interacting with server via commands when container not detached (or reattached via docker attach command).
Restart policy--restart <type>Docker container restart policy. Types: no / on-failure / unless-stopped / always.

Other Information

Docker Hub page

GitHub page

Author

More information about me and my projects: https://rokas.dev

License

papermc-docker is licensed under "MIT" license. Copyright laws apply.

Copyright © 2020 Rokas Jankūnas (LayoutXML)

About

🐳⛏🧱 A hassle free docker image that allows running a PaperMc Minecraft server in no time.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages