This is the tooling to build a full-featured Minecraft server container. It downloads everything as part of the build process, so the resulting image launches immediately. (Note: This does not absolve you of the distribution restrictions of Mojang's licenses.)
This process is customizable via build arguments.
Example:
$ docker build --build-arg eula=yes .
eula
: Set this to accept the Mojang EULAtype
: Set this to the type of server, one of: bukkit
, curse
, paper
, forge
, ftb
, multimc
, spigot
, sponge
, vanilla
, custom
(default: vanilla
)version
: Set this to the Minecraft version you want, or latest
or snapshot
(default: latest
)Note: Only type=vanilla
is implemented
In addition to a basic Minecraft server (in /mc
), this container holds:
cmd
: A program to run commands via rcon. Automatically reads connection information from server.properties
(Fails if rcon is not enabled)This is heavily inspired by (and somewhat based on) itzg/docker-minecraft-server.