Deploying a Minecraft server with docker
This guide will help you go through the process of installing a Minecraft server on a raspberry pi. It works across all platforms and has support for server types
For those people that hate docker,
you can follow this guide: https://pimylifeup.com/raspberry-pi-minecraft-server/
But why docker?
- no need to install java and mess with JRE
- automation with docker is much easier
- fast deployments
For arch-based distros
For Debian based distros
Copy the command and connect through port 25565 a few min later
Note: ARM-based board like the raspberry pi requires the multi-arch tag. This command will also not mount the volumes, look at the mounting volumes section for help
Why you SHOULD use docker for this
- easy management through a web interface using Portainer.
- want to start a server in seconds
- less hassle with managing ports
Why you SHOULDN’T use docker for this
- pushing you pi for absolute performance.
- no other reason why you wouldn’t want to use docker.
If nothing is mounted, docker will create a docker volume and its hard to migrate.
This docker image requires 3 mount points without installing external mod packs
-v argument, you can mount the path inside of docker, and u can access the server files outside of docker. but you do need to restart the container every time u make changes.