Skip to content

figaw/windows-container-minecraft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Best Minecraft Server in the World

Or... at least it's running natively in a Windows Container on Microsofts Nanoserver.

Requirements

1. Server

  1. Download the minecraft server.jar from https://minecraft.net/download/server
  2. Add it to the minecraft folder

2. Java Runtime Environment (JRE)

  1. Copied from Oracle Java on Docker

  2. Overwrite the values in the Dockerfile with your corresponding file, and its contents

3. EULA

In minecraft/eula.txt, change the value from eula=false to eula=true, indicating your agreement to Mojangs Minecraft EULA.

Build with

docker build -t figaw/mc:latest -t figaw/mc:1.0 .

Run it with

docker run -d -p 25565:25565 --name minecraft figaw/mc

Connecting

Find the IP to connect to it with

docker inspect --format='{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' minecraft

Stopping

docker rm -f minecraft

Logs

docker logs minecraft

Add -f to follow, ctrl + c to stop following.

Minecraft Run Command

java -Xmx1024M -Xms1024M -jar -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 server.jar nogui

Roadmap

  • Add a version with a powershell build container
  • Add a volume for worlds, i.e. persistent storage

Releases

No releases published

Packages

No packages published