Giter Club home page Giter Club logo

windows-container-minecraft's Introduction

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

windows-container-minecraft's People

Contributors

figaw avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.