1.8, 1.9, 1.10, 1.11, and 1.12 releases are built on Ubuntu 16.04 with OpenJDK.
1.13 and later releases are built on Ubuntu 18.04 with OpenJDK.
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.
docker pull tighek/minecraft_server:latest
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.
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.
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
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
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.
docker run --rm --volumes-from minecraft_container_name -v //srv/mc_maint:/mc_maint -i -t ubuntu /bin/bash
Content type
Image
Digest
Size
273.3 MB
Last updated
over 4 years ago
docker pull tighek/minecraft_server