Docker Image packaging for Minecraft. This image uses the official slim Java Buster image as a base and sets up an entrypoint and volumes for running a Minecraft server. It also automatically agrees to the EULA. If you mount a folder to /opt/mcserver
that contains an mcserver.jar
then it'll be run by default with some sensible JVM arguments. This image is available on the Docker Hub.
The following environment variables are available to allow you to configure how the container will run, and various options within it:
- MINECRAFT_HEAP_MAX: Allows you to configure the maximum JVM heap size. (Default: 4G)
MIT
Feel free to open a pull request, or file an issue on Github. I always welcome contributions as long as they're for the benefit of all (potential) users of this image.
If you're unsure about anything, feel free to ask about it in an issue before you get your heart set on fixing it yourself.