Minecraft Java Server 1.19+ — Starts fast, runs stable and is always up-to-date.
512
Docker Minecraft PaperMC server for 1.19, 1.18, 1.17 for AMD64 and ARM64 platforms. Works on Synology, Raspberry Pi 4 or any other systems that support docker.
docker run --rm --name mcserver -e MEMORYSIZE='1G' -v /home/joe/mcserver:/data:rw -p 25565:25565 -i marctv/minecraft-papermc-server:latest
The server will generate all data including the world and config files in /home/joe/mcserver. Change that to an existing folder.
docker pull marctv/minecraft-papermc-server:latest
docker stop mcserver
Or just use https://containrrr.dev/watchtower/
You can get the desired UID/GID (xxx) with the ID command (id username) then add the following to your docker run command:
-e PUID=xxx
-e PGID=xxx
If you prefer to use docker-compose, use the following commands:
Start the server:
docker-compose up
Stop the server:
docker-compose stop
Issue server commands after attaching to the container:
docker attach mcserver
# then you can type things like "list"
list
# which will show the current players online or
help
# to see all the commands available
Additionally, a Makefile is provided to easily start, stop, and attach to the container.
make start # equivalent to `docker-compose up -d --build`
make stop # equivalent to `docker-compose stop --rmi all --remove-orphans`
make attach # equivalent to `docker attach mcserver`
make help # prints a help message
MEMORYSIZE = 1G
Not more than 70% of your RAM for your container. This is important. Because this is the RAM, your Minecraft Server will use within the container WITHOUT the operating system.
TZ = Europe/Berlin
Sets the timezone for the container. A list of valid values can be found on Wikipedia: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
PAPERMC_FLAGS = --nojline
Sets the command-line flags for PaperMC. Remove --nojline if you want to enable color and tab-completion for the server console.
Tutorial (german) https://marc.tv/anleitung-stabiler-minecraft-server-synology-nas/
You can install this docker container by using my dedicated installer: https://github.com/mtoensing/RaspberryPiMinecraftDocker Or just follow these steps:
ssh pi@raspberrypi
sudo apt update && sudo apt upgrade
sudo reboot now
The Raspberry Pi will restart now.
curl -fsSL https://get.docker.com -o get-docker.sh
chmod +x get-docker.sh
./get-docker.sh
sudo apt-get install -y uidmap
dockerd-rootless-setuptool.sh install
sudo usermod -aG docker $USER
sudo systemctl enable docker
newgrp docker
cd
mkdir mcserver
docker run -d \
--restart unless-stopped \
--name mcserver \
-e MEMORYSIZE='1G' \
-e PAPERMC_FLAGS='' \
-v /home/pi/mcserver:/data:rw \
-p 25565:25565 \
-it marctv/minecraft-papermc-server:latest
The server will generate all data including the world and config files in /home/pi/mcserver.
docker attach mcserver
Here, you can use Minecraft server commands like whitelist add [userrname].
On GitHub https://github.com/mtoensing/Docker-Minecraft-PaperMC-Server
This server is live here: https://mc.marc.tv
Based on the work of Felix Klauke Thanks for your help!
Content type
Image
Digest
sha256:045564ce5…
Size
132.1 MB
Last updated
over 3 years ago
docker pull pepaondrugs/minecraft-paper-server