Sign inSign up

overware/minecraft-vanilla

By overware

Updated over 4 years ago

Docker image to run and administrate a vanilla minecraft server easily

Image
2

1.7K

overware/minecraft-vanilla repository overview

What is this image ?

This image allows you to run and administrate a minecraft server. It exposes 3 volumes:

  • /minecraft/server : the main directory of the server that contains the map, the server.properties ...
  • /minecraft/backup : a backup directory for the server.
  • /minecraft/ssh : a directory where to place your id_rsa and id_rsa.pub in order to store your backup remotely.

If you want to access directly the MAP and server configuration without using a backup file then you'll have to MAP the volume /minecraft/server.
You can also provide your own map and server configuration in this volume, the server will use it on startup.

Alternatively you can use the /minecraft/backup volume to provide a backup file that will be loaded into /minecraft/server on startup.
A backup file is a simple .tar.gz archive that contains the content of the minecraft server run directory (server.properties, world, whitelist.json,...).
Remark: an attempt to load a backup is done only if /minecraft/server is empty.

inside the container, you can call the command minecraft that allows you to control the minecraft server.
Here is a few example:

  • backup the map and the server.properties: minecraft backup
  • give administrator rights to a player: minecraft command op player-name
  • stop the server properly: minecraft stop
  • get a property of the minecraft server: minecraft property level-name
  • change a property of the minecraft server: minecraft property view-distance 15
  • get a configuration of this wrapper: minecraft config min-heap
  • change a configuration of this wrapper: minecraft config max-heap 8192
  • change the version of minecraft: minecraft set-version 20w17a
  • ...

Get more details on github: minecraft-vanilla

Start a minecraft server instance

$ docker run -d -p 25565:25565 -v directory-to-myserver-config:/minecraft/server -v directory-to-store-backups:/minecraft/backup --name minecraft-vanilla overware/minecraft-vanilla:latest

Tag summary

Content type

Image

Digest

Size

243.9 MB

Last updated

almost 5 years ago

docker pull overware/minecraft-vanilla