项目作者: impressiver

项目描述 :
Minecraft Bedrock Dedicated Server in Docker
高级语言: Shell
项目地址: git://github.com/impressiver/docker-minecraft-bedrock.git
创建时间: 2019-06-21T18:20:47Z
项目社区:https://github.com/impressiver/docker-minecraft-bedrock

开源协议:MIT License

下载


Minecraft Bedrock Server in Docker

Run the official Minecraft Bedrock server in Docker, optionally syncing data to a mounted volume for persistence.

Prerequisites

Arguments

Flag Description Default
BEDROCK_VERSION Specify server version 1.17.10.04
BEDROCK_DOWNLOAD_URL Override download URL https://minecraft.azureedge.net/bin-linux/bedrock-server-${BEDROCK_VERSION}.zip

Instructions

  1. Pull the latest Docker image from Docker Hub

    1. docker pull iwhite/minecraft-bedrock
  2. Create a container and run Minecraft Bedrock server

    Create a Bedrock server that accepts connections only over ipv4

    1. docker run -dit -p 19132:19132/tcp -p 19132:19132/udp iwhite/minecraft-bedrock

    Create a Bedrock server that accepts connections over both ipv4 and ipv6

    1. docker run -dit -p 19132:19132/tcp -p 19132:19132/udp -p 19133:19133/tcp -p 19133:19133/udp iwhite/minecraft-bedrock

    Create a Bedrock server with persistent settings and data

    1. docker run -dit -v /path/to/minecraft-bedrock:/data -p 19132:19132/tcp -p 19132:19132/udp iwhite/minecraft-bedrock

    Replace /path/to/minecraft-bedrock with an absolute path (on the Docker host) where data and settings should be stored.

    Default settings are automatically created when the container first starts.
    Data is then synced every time the container starts, and every time the server or container is stopped.
    This ensures files created or modified by the server are saved to the mounted volume and loaded again after restart.

  3. Connect to the Minecraft server console inside a running container

  1. # Find running server container id
  2. docker ps -f ancestor=iwhite/minecraft-bedrock --format "{{.ID}}: {{.Image}} {{.Status}}"
  3. # Attach to server console
  4. docker attach {container id}
  5. # To detach from the console, type: ^P^Q

You might not see any output after attaching to a container, just type help and hit enter for a list of available commands.