Public Repository

Last pushed: 5 months ago
Short Description
Minecraft container using mark2 as wrapper.
Full Description

Minecraft server (spigot / craftbukkit / vanilla)

This image does not include any minecraft server variant. It expects this to be available in the mounted /minecraft folder.

Mark2 server wrapper

https://github.com/gsand/mark2/blob/master/USAGE.md

If not present runmc will copy a default mark2 properties file to /minecraft.

Example systemd service

In the below example, a minecraft server home is present locally at /srv/minecraft.

[Unit]
Description=Minecraft
After=docker.service
Requires=docker.service

[Service]
Restart=always
RestartSec=30
TimeoutStartSec=0
ExecStartPre=-/usr/bin/docker kill minecraft
ExecStartPre=-/usr/bin/docker rm minecraft
ExecStart=/usr/bin/docker run --name minecraft -p 25565:25565 --cpuset-cpus=0,1,2,3 --memory=7G --privileged -v /srv/minecraft:/minecraft nathema/minecraft:1.10.2
ExecStop=/usr/bin/docker stop minecraft

[Install]
WantedBy=multi-user.target
Docker Pull Command
Owner
nathema

Comments (0)