Sets up fully operational Minecraft server that allows both Java and Bedrock clients to connect
Runs the highly efficient "Purpur" Minecraft server
Runs Geyser to allow Bedrock clients to connect and Floodgate to allow them to authenticate with their Bedrock credentials to a Java server
Uses named Docker volume for safe and easy to access storage of server data files (which enables more advanced Docker features such as automatic volume backups)
Plugin support for Purpur + Paper + Spigot + Bukkit
Installs and configures OpenJDK 18
Automatic backups to minecraft/backups when server restarts
Updates automatically to the latest version when server is started
Runs on all Docker platforms and architectures including ARM / Raspberry Pi
The server data is stored where Docker stores your volumes. This is typically a folder on the host OS that is shared and mounted with the container.
You can find your exact path by typing:
docker volume inspect yourvolumename
This will give you the fully qualified path to your volume like this:
By default the server keeps 10 rolling backups that occur each time the container restarts. You can override this using the BackupCount environment variable:
You can use the QuietCurl environment variable to suppress curl's download output. This will keep your logs tidier but may make it harder to diagnose if something is going wrong. If things are working well it's safe to enable this option and turn it back off so you can see the output if you need to:
This is a "Purpur" Minecraft server which has plugin compatibility with Purpur / Paper / Spigot / Bukkit.
Installation is simple. There is a "plugins" folder on your Docker named volume.
Navigate to your server files on your host operating system (see accessing server files section if you don't know where this is) and you will see the "plugins" folder.
You just need to drop the extracted version of the plugin (a .jar file) into this folder and restart the container. That's it!
Some plugins have dependencies so make sure you read the installation guide first for the plugin you are looking at.
A popular place to get plugins is: https://dev.bukkit.org/bukkit-plugins
A very common problem people have with the Oracle Virtual Machine tutorials out there that typically show you how to use a free VM is that the VM is much more difficult to configure than just about any other product / offering out there.
The symptom you will have is that nobody will be able to connect.
It is because there are several steps you need to take to open the ports on the Oracle VM. You need to both:
Set the ingress ports (TCP/UDP) in the Virtual Cloud Network (VCN) security list
*and* set the ingress ports in a Network Security Group assigned to your instance
Both of these settings are typically required before you will be able to connect to your VM instance. This is purely configuration related and has nothing to do with the script or the Minecraft server itself.
I do not recommend this platform due to the configuration difficulty but the people who have gone through the pain of configuring an Oracle VM have had good experiences with it after that point. Just keep in mind it's going to be a rough ride through the configuration for most people.
There is a weird bug in Hyper-V that breaks UDP connections on the Minecraft server. There are two fixes for this. The simplest fix is that you have to use a Generation 1 VM with the Legacy LAN network driver.
See the following links:
There is a second fix that was shared by bpsimons here. You need to install ethtool first with sudo apt install ethtool. Next in your /etc/network/interfaces file add "offload-tx off" to the bottom as the issue appears to be with TX offloading.
Here's an example:
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
offload-tx off
This can also be done non-persistently with the following ethtool command:
Updated build process to use buildx for multi-arch builds
July 24th 2025
Updated default version to 1.21.8 (remember, you never need to wait for updates to change Minecraft versions, just use -e Version=1.21.8)
February 8th 2025
Updated default version to 1.21.8 (remember, you never need to wait for updates to change Minecraft versions, just use -e Version=1.21.8)
February 8th 2025
Updated default version to 1.21.4 (remember, you never need to wait for updates to change Minecraft versions, just use -e Version=1.21.4)
December 1st 2024
Fixed ViaVersion updates
Container no longer runs server as root and instead creates a user named "minecraft"
Updated default version to 1.21.3 (remember, you never need to wait for updates to change Minecraft versions, just use -e Version=1.21.3)
June 29th 2024
Updated default Purpur version to 1.21
May 19th 2024
Updated OpenJDK version to 21
Updated default Purpur version to 1.20.6
April 27th 2024
Updated default Purpur version to 1.20.5
December 13th 2023
Updated default Purpur version to 1.20.4
November 26th 2023
Fix Geyser and Spigot updates after they stopped using Jenkins (downloads every server start, no MD5 anymore unfortunately to check for updates with)
October 1st 2023
Updated default Purpur version to 1.20.2
June 9th 2023
Updated default Purpur version to 1.20
April 18th 2023
Add NoViaVersion environment variable to disable using ViaVersion in case of incompatible plugins
March 18th 2023
Upgrade to Purpur 1.19.4
March 15th 2023
Add ViaVersion plugin to allow players on newer clients to connect to the server (very helpful when waiting for new updates to be released)
Fix Geyser and Floodgate update checks
January 25th 2023
Removed check for terminal and will let the Minecraft server throw an error if environment is not appropriate
January 14th 2023
Change connectivity test from google.com to Purpur site as google.com is blocked in some countries
January 12th 2023
Remove broken ScheduleRestart environment variable -- this needs to be done in your OS using docker restart (typically with crontab in Linux or Task Scheduler in Windows)
December 9th 2022
Update to Purpur 1.19.3 (make sure you have backups)
November 19th 2022
Add "QuietCurl" environment variable which will suppress the progress meter on curl keeping the logs much tidier
Remove fixpermissions.sh and add 3 lines into main start.sh file
November 7th 2022
Fail immediately if ran without an interactive terminal (as the Minecraft server won't work without one)
October 30th 2022
Add RISC architecture support
Switch from ubuntu:latest to ubuntu:rolling
Switch from using Adoptium to using ubuntu:rolling OpenJDK
Removed SetupMinecraft.sh
Fix bug with new ScheduleRestart environment variable
October 21st 2022
Added new environment variable "BackupCount" to control the number of backups the container keeps
NoBackup optional environment variable can now be multiple paths to files to skip backups on separated by a comma. Example: plugins/test,plugins/test2
October 20th 2022
Added new environment variable "NoBackup" to skip a folder from backup activities
Added new environment variable "NoPermCheck" to skip permissions check during startup
Added new environment variable "ScheduleRestart" -- this schedules the container to shut down at a certain time which combined with the --restart switch gives daily reboot functionality
October 8th 2022
Upgrade to OpenJDK 19
September 27th 2022
Fix SIGTERM catching in certain situations by running java with the "exec" command which passes execution completely to that process (thanks vp-en, Issue #3)