Public Repository

Last pushed: 2 years ago
Short Description
Minecraft Server 1.9
Full Description

Minecraft Server 1.9

I've changed versioning in Docker. Minecraft Server 1.10 (and all future releases) can be found here: https://hub.docker.com/r/tighek/minecraft_server/

Pull the image

docker pull tighek/minecraft_server1.9: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_server1.9:latest

Minecraft runs as user "minecraft" within the container.

Using a data only container for your world

I wanted an easy solution to persistent data between snapshots so I migrated world data and config files
to /srv/minecraft/custom with symlinks to where the files should be. I created a separate data container
using:

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

Then create your container with:

docker run -d --name minecraft --volumes-from minecraft_data -p 25565:25565 -p 25565:25565/udp -t tighek/minecraft_server1.9:latest

If you need to migrate data from another container or backup your world by starting a Linux container
attached to your minecraft container:

docker run --rm --volumes-from minecraft_container_name -v /mountpoint:/mountpoint -i -t ubuntu /bin/bash

At the Linux prompt, your minecraft's /srv/minecraft is available and you can copy into /mountpoint
which maps to your local Linux /mountpoint

Docker Pull Command
Owner
tighek