terencewestphal / docker-minecraft

The vanilla Minecraft server in a Docker container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker Build Statu Docker Stars Docker Pulls

Minecraft

Docker - Minecraft (Vanilla)

Supported tags and Dockerfile

Pull

Get the latest version:

docker pull terencewestphal/minecraft:latest

Get a specific version:

docker pull terencewestphal/minecraft:1.12.2

Build

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.2 -t minecraft .

Run

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

About

The vanilla Minecraft server in a Docker container

License:MIT License


Languages

Language:Shell 100.0%