Sign inSign up

layoutxml/vanilla-minecraft-docker

By layoutxml

•Updated about 6 years ago

A hassle free docker image that allows running a vanilla Minecraft server in no time.

Image
0

186

layoutxml/vanilla-minecraft-docker repository overview

⁠vanilla-minecraft-docker

A hassle free docker image that allows running a vanilla Minecraft server in no time. For Linux.

For PaperMc Minecraft server, visit - Docker Hub page⁠, GitHub page⁠.

⁠Usage

To use the latest stable version of Minecraft, run

sudo docker run -p 25565:25565 -v /root/minecraft_server:/minecraft_server -d -ti --restart unless-stopped -e EULA=true layoutxml/vanilla-minecraft-docker

⁠Options

⁠Arguments

The following arguments can be passed at build time as build arguments (--build-arg EULA=true) or at the run time as environment variables (-e EULA=true). They will be saved and remembered for each subsequent run, unless conflicting argument is passed.

NameDefault valueNote
EULAfalseYou must agree to Minecraft's EULA
JDK_VERSION14-slimThis is the latest currently allowed OpenJDK version. Feel free to change it in the future. This argument can only be used as a build argument.
FOLDER_NAMEminecraft_serverUseful to change when running multiple servers.
MINECRAFT_VERSIONIf no version specified, will use the latest stable version.
RAM1024MServer RAM. M for MB, G for GB.
JAVA_ARGSAdditional java args.
⁠Useful Docker Arguments
NameArgumentNote
Port-p 25565:25565You must use this argument to map default 25565 port (on the right) to any open port (on the left). Without it, the port will remain closed.
Volume-v /root/minecraft_server:/minecraft_serverYou must use this argument to map default minecraft_server folder to a folder on your machine. Without it, the data will be lost when container stops.
Detached-dRun docker container in a detached way, allowing use of console for other tasks.
Interactive-tiAllows interacting with server via commands when container not detached (or reattached via docker attach command).
Restart policy--restart <type>Docker container restart policy. Types: no / on-failure / unless-stopped / always.

⁠Other Information

Docker Hub page⁠

GitHub page⁠

⁠Author

More information about me and my projects: https://rokas.dev⁠

⁠License

vanilla-minecraft-docker is licensed under "MIT" license. Copyright laws apply.

Copyright © 2020 Rokas Jankūnas (LayoutXML)

Tag summary

Content type

Image

Digest

Size

233.4 MB

Last updated

about 6 years ago

docker pull layoutxml/vanilla-minecraft-docker