Code Monkey home page Code Monkey logo

docker-minecraft-bedrock's Introduction

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.14.30.2
BEDROCK_DOWNLOAD_URL Override download URL "https://minecraft.azureedge.net/bin-linux/bedrock-server-${BEDROCK_VERSION}.zip"

Instructions

  1. Pull the latest image from Docker Hub
docker pull iwhite/minecraft-bedrock
  1. Create a container and run Minecraft Bedrock server
  • Create a Bedrock server that accepts connections only over ipv4
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
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
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.

  1. Connect to the Minecraft server console inside a running container
# Find running server container id
docker ps -f ancestor=iwhite/minecraft-bedrock --format "{{.ID}}: {{.Image}} {{.Status}}"
# Attach to server console
docker attach {container id}
# 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.

docker-minecraft-bedrock's People

Contributors

impressiver avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.