Docker wrapper to run Minecraft in Docker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jimmy 21e2aefbe8 Change to CMD 1 year ago
src Print java version 1 year ago
.gitignore Remove binaries 2 years ago
Dockerfile Change to CMD 1 year ago
LICENSE Initial commit 2 years ago Fix typos 1 year ago Use multi stage build 1 year ago
docker-compose.yml change jar to server.jar 1 year ago Add script to download Minecraft server 2 years ago
go.mod Initial commit 2 years ago
go.sum Initial commit 2 years ago

Docker Minecraft

Wrapper to run Minecraft in Docker

Build Image


Get Minecraft Sever For Testing


Run Server

docker-compose up -d

docker run -it --name minecraft -p 25565:25565 -v $PWD:/server -e MAX_MEM=1G magmise/minecraft

Get Logs

docker-compose logs

docker logs minecraft

Send Command to Server

docker-compose exec cmd say hello

docker exec minecraft cmd say hello

Attach to Container

docker attach minecraft

To detach use ctrl+p ctrl+q

Don't use ctrl+c to disconnect, it will kill the server

Environmental Variables


Default is server.jar


Default is 512M


Default is 1G


Default is stop

This would be used for Bungee where the stop command is end