Docker build script for Arch Linux base with Minecraft Bedrock server
1M+
Minecraft is a sandbox video game created by Swedish game developer Markus Persson and released by Mojang in 2011. The game allows players to build with a variety of different blocks in a 3D procedurally generated world, requiring creativity from players. Other activities in the game include exploration, resource gathering, crafting, and combat. Multiple game modes that change gameplay are available, including—but not limited to—a survival mode, in which players must acquire resources to build the world and maintain health, and a creative mode, where players have unlimited resources to build with.
Latest alpha Minecraft Bedrock release from Mojang.
docker run -d \
--net="bridge" \
--name=<container name> \
-p <host port>:8222/tcp \
-p <host port>:19132/tcp \
-p <host port>:19132/udp \
-p <host port>:19133/tcp \
-p <host port>:19133/udp \
-v <path for config files>:/config \
-v /etc/localtime:/etc/localtime:ro \
-e CREATE_BACKUP_HOURS=<frequency of world backups in hours> \
-e PURGE_BACKUP_DAYS=<specify oldest world backups to keep in days> \
-e ENABLE_WEBUI_CONSOLE=<yes|no> \
-e ENABLE_WEBUI_AUTH=<yes|no> \
-e WEBUI_USER=<specify webui username> \
-e WEBUI_PASS=<specify webui password> \
-e WEBUI_CONSOLE_TITLE=<specify webui console title> \
-e STARTUP_CMD=<minecraft console command to execute on startup> \
-e ENABLE_STARTUP_SCRIPTS=<yes|no> \
-e STARTUP_SCRIPTS_MODE=<wait|parallel> \
-e HEALTHCHECK_COMMAND=<command> \
-e HEALTHCHECK_ACTION=<action> \
-e HEALTHCHECK_HOSTNAME=<hostname> \
-e UMASK=<umask for created files> \
-e PUID=<uid for user> \
-e PGID=<gid for user> \
binhex/arch-minecraftbedrockserver
Please replace all user variables in the above command defined by <> with the correct values.
Requires -e ENABLE_WEBUI_CONSOLE=yes
http://<host ip>:8222
docker run -d \
--net="bridge" \
--name=minecraftbedrockserver \
-p 8222:8222/tcp \
-p 19132:19132/tcp \
-p 19132:19132/udp \
-p 19133:19133/tcp \
-p 19133:19133/udp \
-v /apps/docker/minecraftbedrockserver:/config \
-v /etc/localtime:/etc/localtime:ro \
-e CREATE_BACKUP_HOURS=12 \
-e PURGE_BACKUP_DAYS=14 \
-e ENABLE_WEBUI_CONSOLE=yes \
-e ENABLE_WEBUI_AUTH=yes \
-e WEBUI_USER=admin \
-e WEBUI_PASS=minecraft \
-e WEBUI_CONSOLE_TITLE='Minecraft Bedrock' \
-e STARTUP_CMD='gamerule showcoordinates true' \
-e ENABLE_STARTUP_SCRIPTS=no \
-e STARTUP_SCRIPTS_MODE=wait \
-e UMASK=000 \
-e PUID=0 \
-e PGID=0 \
binhex/arch-minecraftbedrockserver
ENABLE_STARTUP_SCRIPTS when set to yes (default no) will allow a user to
install additional packages from the official Arch Repository or the Arch User
Repository (AUR) via scripts located in the folder
/config/minecraftbedrockserver/scripts/.
STARTUP_SCRIPTS_MODE controls how those scripts are executed, set to wait
(default) to run each script in turn and wait for it to complete before the next
script runs, or parallel to run all scripts at the same time.
If you do NOT want world backups and/or purging of backups then set the value to '0' for env vars 'CREATE_BACKUP_HOURS' and/or 'PURGE_BACKUP_DAYS'.
User ID (PUID) and Group ID (PGID) can be found by issuing the following command for the user you want to run the container as:-
id <username>
If you appreciate my work, then please consider buying me a beer :D
Content type
Image
Digest
sha256:cb4db06e8…
Size
331 MB
Last updated
2 days ago
docker pull binhex/arch-minecraftbedrockserver