PaperMC minecraft server capable of running in a Docker container
1.1K
This is a Linux Docker image for the PaperMC Minecraft server.
PaperMC is an optimized Minecraft server with plugin support (Bukkit, Spigot, Sponge, etc.). This image provides a basic PaperMC server. All customizations are left to the user.
It is assumed that the user has already acquired a working Docker installation. If that is not the case, go do that and come back here when you're done.
With this image, you can create a new PaperMC Minecraft server with one command (note that running said command indicates agreement to the Minecraft EULA). Here is an example:
sudo docker run -p 25565:25565 dcorbe/papermc
While this command will work just fine in many cases, it is only the bare minimum required to start a functional server and can be vastly improved by specifying some...
There are several command line options that users may want to specify when utilizing this image. These options are listed below with some brief explanation. An example will be provided with each. In the example, the part that the user can change will be surrounded by angle brackets (< >). Remember to remove the angle brackets before running the command.
25565 if you don't know what this is.25575.-p <12345>:25565-p <12345>:25565 -p <6789>:25575-v <my_volume_name>:/papermc-v </path/to/files>:/papermc-ddocker attach.-t and -i in any order-ti or -it--restart on-failure--name "<my-container-name>"There is one more command line option, but it is a bit special and deserves its own section.
Environment variables are options that are specified in the format -e <NAME>="<VALUE>" where <NAME> is the name of the environment variable and <VALUE> is the value that the environment variable is being set to. Please note that setting an evironment variable with no value does not leave it at default; instead, this sets it to an empty string, which may cause issues. This image has four environment variables:
MC_VERSION-e MC_VERSION="<latest>"PAPER_BUILDMC_VERSION will be used.-e PAPER_BUILD="<latest>"MC_RAMM for "Megabytes" or G for "Gigabytes".-e MC_RAM="<4G>"JAVA_OPTS-e JAVA_OPTS="<-XX:+UseConcMarkSweepGC -XX:+UseParNewGC>"-e MC_VERSION=1.20.1 (or your desired version) to your docker run command line arguments-e PAPER_BUILD=171 (or your desired version) to your docker run command line argumentspapermc/plugins folder-p 19132:19132 and -p 19133:19133 to your docker run command line arguments.-p 8123:8123 to your docker run command line arguments.-p 8100:8100 to your docker run command line arguments.-p 8080:8080 to your docker run command line arguments.From this point, the server should be configured in the same way as any other Minecraft server. The server's files, including server.properties, can be found in the volume that was specified earlier. The port that was specified earlier will probably need to be forwarded as well. For details on how to do this and other such configuration, Google it, because it works the same as any other Minecraft server.
This project does NOT redistribute the Minecraft server files. Instead, the (very small) script that is inside of the image, papermc.sh, downloads these files from their official sources during installation.
PLEASE NOTE: This is an unofficial project. I did not create PaperMC. This is the official PaperMC website.
Content type
Image
Digest
sha256:e46e704b9…
Size
78.3 MB
Last updated
about 2 years ago
docker pull dcorbe/papermc