This container is based on jeanblanchard/java and runs a Minecraft vanilla server with Oracle Java 8. It is intended to be small (only 150 Mb) yet configurable.
/minecraft for persistent server data or to install mods.
Note: You must read and agree to Mojang's Minecraft EULA before running any Minecraft server.
The server can be configured with the following environment variables:
MINECRAFT_MEM - memory allocated to server (heap size). Defaults to 1024M.
SERVER_OP - minecraft username which is granted operator status (if the server is new and doesn't already have any operators)
25565 - minecraft server
docker run -d --name minecraft -p 25565:25565 -v ~/minecraft:/minecraft -e MINECRAFT_MEM=2G -e SERVER_OP=steve weevilgenius/minecraft:1.7.10 forge