Public | Automated Build

Last pushed: 4 days ago
Short Description
Minecraft Server (Vanilla) in a Docker container
Full Description

Docker - Minecraft (Vanilla)

Supported tags and Dockerfile


Get the latest version:

docker pull terencewestphal/minecraft:latest

Get a specific version:

docker pull terencewestphal/minecraft:1.12.1


Build the latest Minecraft version and tag the image:

docker build -t minecraft .

Optional: Build with a specific Minecraft version:

docker build --build-arg VERSION=1.12.1 -t minecraft .


Run with default settings:

docker run -d -p 25565:25565 --name minecraft terencewestphal/minecraft

Run with volume mounted:

docker run -d -p 25565:25565 -v $PWD/defaults:/srv/minecraft --name minecraft terencewestphal/minecraft

Interactive Mode

Attach an interactive console in order to use the Minecraft server commands:

docker attach minecraft
Docker Pull Command

Comments (0)