Sign inSign up

jbresciani/minecraft

By jbresciani

Updated almost 5 years ago

minecraft container

Image
0

1.2K

jbresciani/minecraft repository overview

This image will provide you with a Minecraft server (java edition).

Source

https://github.com/jbresciani/minecraft

(example kubernetes manifests can be found with the source)

Labels

labels will match the Minecraft versions released by Mojang

ENVIRONMENT

ENV variables that control the server configuration

The java_opts will be appended to the startup command, it defaults to the below. More ram will be required for more than 20 players.

JAVA_OPTS="-Xmx2048m -Xms512m"

You must accept the Minecraft EULA (found at https://account.mojang.com/documents/minecraft_eula). I can't accept it for you, so toggle this to true when you launch the container to accept it.

ACCEPT_EULA=false

You can change server behaviour by manipulating these variables, these are the only ones I support at the moment, but I'm looking at moving to a more dynamic approach to make customization more complete.

ALLOW_FLIGHT=false
DIFFICULTY=1
GAMEMODE=0
GENERATE_STRUCTURES=true
HARDCORE=false
LEVEL_SEED=
LEVEL_TYPE=DEFAULT
MAX_PLAYERS=20
MOTD="A Minecraft Server"
PVP=true
SPAWN_ANIMALS=true
SPAWN_MONSTERS=true
SPAWN_NPCS=true
SPAWN_PROTECTION=16

Tag summary

Content type

Image

Digest

Size

255.8 MB

Last updated

almost 5 years ago

docker pull jbresciani/minecraft:1-18-0-6e93c097