Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

michaelsstuff/minecraft-server-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft Server in Docker

Run your minecraft server in a docker container.

Usage

Create any of the following files if you want to customize your server:

server.properties

banned-ips.json

banned-players.json

ops.json

whitelist.json

Depending on the files you created, start the server:

Bare minimum:

echo "eula=true" > eula.txt
docker run --rm -it -d \
-p 25565 \
--name my-mc-world \
-v $(pwd)/eula.txt:/mc/eula.txt \
halandar/minecraft-server-docker:latest

With custom files and settings:

echo "eula=true" > eula.txt
docker run --rm -it -d \
-v my-mc-world:/mc/world \
-p 25565 \
--name my-mc-world \
-v $(pwd)/eula.txt:/mc/eula.txt \
-v $(pwd)/server.properties:/mc/server.properties \
-v $(pwd)/banned-ips.json:/mc/banned-ips.json \
-v $(pwd)/banned-players.json:/mc/banned-players.json \
-v $(pwd)/ops.json:/mc/ops.json \
-v $(pwd)/whitelist.json:/mc/whitelist.json \
halandar/minecraft-server-docker:latest

Mods

TBA

issuing server commands

docker attach my-mc-world

Now you have the minecraft server console open and can issue server commands. To close this console enter

Ctrl+p, Ctrl+q

About

Minecraft Server in a Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published