You can build your spigot Docker image for whatever Minecraft version supported by the official spigot build tools.
This command below will create a Docker image with spigot supporting Minecraft version 1.13.2.
# git clone https://github.com/zekroTJA/spigot-dockerized
# docker build . -t spigot-dockerized:1.13.2 \
--build-arg MCVERSION="1.13.2"
You need to bind the Minecraft server port (25565
) and the RCON port (25575
) to the host system. Also, you need to mount the configs location (/etc/mcserver/config
), the plugins location (/etc/mcserver/plugins
), the worlds container location (/etc/mcserver/worlds
) and the location of local files like ops.json
oder banned-players.json
(/etc/mcserver/locals
).
# docker run \
-p 25565:25565 -p 25575:25575 \
-v /home/mc/config:/etc/mcserver/config \
-v /home/mc/plugins:/etc/mcserver/plugins \
-v /home/mc/worlds:/etc/mcserver/worlds \
-v /home/mc/locals:/etc/mcserver/locals \
-d \
spigot-dockerized:1.13.2