Minecraft Server

Minecraft Server is an all-in-one Docker images that allows you to run a Minecraft Server inside a Docker container.

Github Repo: https://github.com/DockerDemos/MinecraftServer

Issue Tracker: https://github.com/DockerDemos/MinecraftServer/issues

Building the Image

  1. git clone https://github.com/DockerDemos/MinecraftServer.git
  2. cd MinecraftServer
  3. sudo docker build -t minecraft . - Note the period on the end

Running the Container

sudo docker run -p 25565:25565 -d minecraft

Then, open your Minecraft client and connect to "localhost" or "127.0.0.1" to start playing.

To improve startup speed, this image will not update with the latest version of the Minecraft software automatically once the initial image is built. When a new update is released, run the docker build command from above to get the newest version.

Making the Server Publicly Available

The docker run command above will run the Docker container with your new Minecraft server in a manner that is ready to accept connections from the public. Just make sure your host's firewall is set to accept incoming connection on port 25565, and your router is configured to pass traffic on port 25565 back to the host running your Docker container.

Acknowledgements

Thanks to:

This Minecraft Server Docker image is:

Copyright (C) 2014-2015 Chris Collins

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.