本站支持搜索的镜像仓库:Docker Hub、gcr.io、ghcr.io、quay.io、k8s.gcr.io、registry.gcr.io、elastic.co、mcr.microsoft.com

[***]

This repository contains a Minecraft server with the Forge modding tools installed for Docker. Docker containers are immutable instances therefore any changes you make to your Server across restarts will be lost. To save the state of your ensure the following container volumes are mapped to a local folder:
Access to the minecraft server is typically configured through the banning ips, whitelisting players, and banning players. Since the configuration files for these
options ares stored in the main Minecraft folder /minecraft, these settings would be lost after a container restart. To solve this problem this Docker image links the following files to the /minecraft/config folder:
To see a demo of this Image being deployed to Azure Container Images, checkout episode 1 of HashiCraft.
[***]
Configuration of the Mincraft server is completed through the following Environment variables:
Download a world backup archive in tar.gz format from the given URL and copy the contents to /minecraft/world when the server starts. It is expected that the .tar.gz archive only has the world data at the root level.
Note: This operation will only take place when the /minecraft/world folder is empty
WORLD_BACKUP=[***]
Download a compressed folder in tar.gz format containing Minecraft mods and extract to /minecraft/mods when the server starts. It is expected that the .tar.gz file has the mods at the root level.
Note: This operation will only take place when the /minecraft/mods folder is empty
MODS_BACKUP=[***]
Download a compressed folder in zip format containing Minecraft resource pack, clients joining the server who have resource packs enabled will automatically download and apply this resource pack.
RESOURCE_PACK=[***]
Configures how much memory is allocated to the Java virtual machine.
JAVA_MEMORY=4
Port which the Minecraft server listens on.
MINECRAFT_PORT=25565
Enable the Nether underworld for the server
ALLOW_NETHER=true
Message of the day presented to users when they log in.
MINECRAFT_MOTD="Welcome to the Minecraft server"
Port which the RCon remote admin server listens on.
RCON_PORT=27015
Is the RCon remote admin server enabled?
RCON_ENABLED=true
Password to access the remote RCon server.
Note: You should always use a strong password when your server is connected to the public internet.
RCON_ENABLED=3fdf32dss29$#c1
Enable the Minecraft server player whitelist?
Note: You should always enable the whitelist when a server is connected to the public internet.
Users can be added to the whitelist using the following command from either the server or RCom terminal.
whitelist add <USERNAME>
WHITELIST_ENABLED=true
Sets the game mode for new players. Allowed values: "survival", "creative", or "adventure"
GAME_MODE=creative
Enables GameSpy4 protocol server listener. Used to get information about server.
ENABLE_QUERY=false
If non-zero, players are kicked from the server if they are idle for more than that many minutes.
PLAYER_IDLE_TIMEOUT=30
Defines the difficulty (such as damage dealt by mobs and the way hunger and poison affects players) of the server. Allowed values: "peaceful", "easy", "normal", "hard"
DIFFICULTY=peaceful
Determines if monsters can spawn. true - Enabled. Monsters appear at night and in the dark. false - Disabled. No monsters.
SPAWN_MONSTERS=false
Determines if animals can spawn. true - Animals spawn as normal. false - Animals immediately vanish.
SPAWN_ANIMALS=false
Determines if villagers can spawn. true - Villagers spawn as normal. false - Villagers immediately vanish.
SPAWN_NPCS=false
docker run \ --rm \ -it \ -p 25565:25565 \ -p 27015:27015 \ -v ${PWD}/mods:/minecraft/mods \ -v ${PWD}/world:/minecraft/world \ -v ${PWD}/config:/minecraft/config \ -e "MINECRAFT_MOTD=Hello World" \ -e "RCON_ENABLED=true" \ -e "RCON_PASSWORD=password" \ -e "WORLD_BACKUP=[***]" \ hashicraft/minecraft:v1.16.3
Install Shipyard [***]
➜ shipyard run ./blueprint Running configuration from: ./ 2020-04-09T09:12:28.504+0100 [DEBUG] Statefile does not exist 2020-04-09T09:12:28.504+0100 [INFO] Creating Container: ref=minecraft 2020-04-09T09:12:28.562+0100 [DEBUG] Image exists in local cache: image=hashicraft/minecraft:latest 2020-04-09T09:12:28.562+0100 [INFO] Creating Container: ref=minecraft
On initialization the Docker container will download the world and mods and copy these to your local disk:
To reset a world to its default state simply remove the contents of ./world
To make changes to the docker image you can modify the Dockerfile and entrypoint.sh script then build a new container
docker build -t hashicraft/minecraft:latest
If you would like to expose your server to the Outside world *** is a great tool [***]
Install *** from [***]
Create a remote port for your local minecraft server
*** tcp 25565 Session Status online Account Nicholas Jackson (Plan: Free) Version 2.3.35 Region United States (us) Web Interface [***] Forwarding tcp://0.tcp.***.io:17144 -> localhost:25565 Connections ttl opn rt1 rt5 p50 p90 0 0 0.00 0.00 0.00 0.00
免费版仅支持 Docker Hub 加速,不承诺可用性和速度;专业版支持更多镜像源,保证可用性和稳定速度,提供优先客服响应。
免费版仅支持 docker.io;专业版支持 docker.io、gcr.io、ghcr.io、registry.k8s.io、nvcr.io、quay.io、mcr.microsoft.com、docker.elastic.co 等。
当返回 402 Payment Required 错误时,表示流量已耗尽,需要充值流量包以恢复服务。
通常由 Docker 版本过低导致,需要升级到 20.x 或更高版本以支持 V2 协议。
先检查 Docker 版本,版本过低则升级;版本正常则验证镜像信息是否正确。
使用 docker tag 命令为镜像打上新标签,去掉域名前缀,使镜像名称更简洁。
探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录方式配置轩辕镜像加速服务,包含7个详细步骤
在 Linux 系统上配置轩辕镜像源,支持主流发行版
在 Docker Desktop 中配置轩辕镜像加速,适用于桌面系统
在 Docker Compose 中使用轩辕镜像加速,支持容器编排
在 k8s 中配置 containerd 使用轩辕镜像加速
在宝塔面板中配置轩辕镜像加速,提升服务器管理效率
在 Synology 群晖NAS系统中配置轩辕镜像加速
在飞牛fnOS系统中配置轩辕镜像加速
在极空间NAS中配置轩辕镜像加速
在爱快ikuai系统中配置轩辕镜像加速
在绿联NAS系统中配置轩辕镜像加速
在威联通NAS系统中配置轩辕镜像加速
在 Podman 中配置轩辕镜像加速,支持多系统
配置轩辕镜像加速9大主流镜像仓库,包含详细配置步骤
无需登录即可使用轩辕镜像加速服务,更加便捷高效
需要其他帮助?请查看我们的 常见问题 或 官方QQ群: 13763429