Public Repository

Last pushed: 24 days ago
Short Description
Minecraft Server
Full Description

Minecraft Server

1.8, 1.9, 1.10, 1.11, and 1.12 releases are built on Ubuntu 16.04 with Java8
1.13 releases are built on Ubuntu 18.04 with Java9

A simple Minecraft server! Just start it up and play or use one of the data management options below for easier upgrades in the future.

Running The Server

Pull the image
docker pull tighek/minecraft_server:latest
Create a container and publish the required tcp/udp ports
docker run -d --name minecraft -p 25565:25565 -p 25565:25565/udp -t tighek/minecraft_server:latest

Minecraft runs as user "minecraft" within the container.

Managing Data

Data is stored at /srv/minecraft inside the container. You have several options, such as using a data container or mapping /srv/minecraft to a local directory on the server.

Using a data only container

Create the data container

docker create -v /srv/minecraft/custom --name minecraft_data ubuntu:16.04 /bin/true

Create your Minecraft server container that uses the data only container

docker run -d --name minecraft --volumes-from minecraft_data -p 25565:25565 -p 25565:25565/udp -t tighek/minecraft_server:latest
Using a local directory on the server

Create your Minecraft server container that uses a local data folder

docker run -d --name minecraft -v /srv/minecraft_survival:/srv/minecraft -p 25565:25565 -p 25565:25565/udp -t tighek/minecraft_server:latest

Migrating Data

To manage data in the data only container for things such as server setting or backups, I created a maintenance container which access the data only container and a local volume on the host.

Create the Minecraft Maintenance container
docker run --rm --volumes-from minecraft_container_name -v //srv/mc_maint:/mc_maint -i -t ubuntu /bin/bash
Docker Pull Command
Owner
tighek