Git Product home page Git Product logo

minecraft-bedrock's Introduction

English doc | Older version | 中文文档

Docker Pulls Auto Update Build

A bedrock Minecraft PE Server on Docker

This documentation is for image lomot/minecraft-bedrock:1.20.73.01

Start the server

1. Install Docker in your server

apt install docker.io

or you can follow this documentation : How to install Docker

2. Create a folder for server data

This folder is for your world data and some configuration files, it contains permissions.json,server.properties,allowlist.json,worlds, if you use an empty folder, all the files will be created automatically, for example /opt/mcpe-data

mkdir -p /opt/mcpe-data

3. Deploy the server

docker run -itd --restart=always --name=mcpe --net=host \
  -v /opt/mcpe-data:/data \
  lomot/minecraft-bedrock:1.20.73.01

Upgrade the server

1. Backup your data

Backup the folder /opt/mcpe-data

cp -r /opt/mcpe-data /opt/mcpe-data.bak

2. Exit and delete the old container

docker container stop mcpe
docker container rm mcpe

3. Start a new container

docker run -itd --restart=always --name=mcpe --net=host \
  -v /opt/mcpe-data:/data \
  lomot/minecraft-bedrock:1.20.73.01

Manage the server

Enter or quit the game console

docker attach mcpe

To quit, press ctrl + p + q

Use ctrl + c or ctrl + dto kill the process

Use this command to stop/start/restart/rm the server

docker container stop/start/restart/rm mcpe

Change the server port

To change the server port, update server-port in the fileserver.properties

Using bridge networks will decrease the network performance, it is supposed to use host networks.

About addons, behavior_packs and resource_packs

There are too many files about addons to configure, so I made another image, to use this image, you need to manage server folder by yourself, such as update and configuration files, you can download the server files here Minecraft server.

How to use:

docker run -itd --restart=always --name=mcpe --net=host \
  -v /opt/mcpe-data:/mcpe \
  lomot/minecraft-bedrock:base

Binary file from

https://minecraft.net/en-us/download/server/bedrock/

Docker Hub

https://hub.docker.com/r/lomot/minecraft-bedrock

Github

https://github.com/LomotHo/minecraft-bedrock

minecraft-bedrock's People

Contributors

lomotho avatar pisich avatar sagebrushes avatar sanmadjack avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

minecraft-bedrock's Issues

version `GLIBCXX_xxx' not found 

Hello,

After update to latest image today, I have the following errors when starting the container:

| stdout | /mcpe/server/bedrock_server: /lib/x86_64-linux-gnu/libpthread.so.0: version `GLIBC_2.30' not found (required by /mcpe/server/bedrock_server)

| stdout | /mcpe/server/bedrock_server: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /mcpe/server/bedrock_server)

| stdout | /mcpe/server/bedrock_server: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /mcpe/server/bedrock_server)

Running on Synology, no problems before this update

How to exec commands like a "list" via docker exec?

Hello. How can i exec minecraft commands via docker exec?
When i enter:
docker exec -it mcpe list
i got:

OCI runtime exec failed: exec failed: unable to start container process: exec: "list": executable file not found in $PATH: unknown

Want add some cron script for detect server activity and record player names in log

关于启动问题

我找到了服务器插件,但是他是用
LD_LIBRARY_PATH=. LD_PRELOAD=./mods/a.so ./bedrock_server
来启动服务器的,请问在你这个容器里面应该怎么启动它?

Server will not start correctly, get error message

After upgrading (with watchtower) the server will not start.

I get this message:

/mcpe/script/docker-entrypoint.sh: 25: exec: bedrock_server: not found

I think it is looking for the server in the wrong path.

烦劳作者把base版的"GLIBCXX_xxx' not found"问题修复一下

2023-09-27 13:35:37 | stdout | /mcpe/bedrock_server: /lib/x86_64-linux-gnu/libm.so.6: version GLIBC_2.29' not found (required by /mcpe/bedrock_server) 2023-09-27 13:35:37 | stdout | /mcpe/bedrock_server: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.26' not found (required by /mcpe/bedrock_server)
2023-09-27 13:33:16 | stdout | /mcpe/bedrock_server: /lib/x86_64-linux-gnu/libpthread.so.0: version `GLIBC_2.30' not found (required by /mcpe/bedrock_server)

base版本,刚刚更新了1.20.31,就不行了,从官网下载的服务端。更新之前还可以运行的。lasest版本可以运行,可是无法使用插件。请作者适配一下base版吧,先谢过了。

部署服务器时出错

创建的服务器目录和文档里的相同
mkdir -p /opt/mcpe-data
第三步部署服务器时出现如下错误提示

$ docker run -itd --restart=always --name=mcpe --net=host \
>   -v /opt/mcpe-data:/data \
>   lomot/minecraft-bedrock:1.16.0.2
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.40/containers/create?name=mcpe: dial unix /var/run/docker.sock: connect: permission denied.

成功执行systemctl start dockersystemctl enable docker后仍然无法解决

新版本更新了

又有新版本更新了,世界高度好像改成-60到320了,另外能不能监测官方发版自动编译呢……每次更新都要来催添麻烦了😂

如何开启坐标显示

求问,领域服可以导入单机已开启坐标显示的地图,那么该专业服如何导入呢?
或者有别的什么办法开启坐标显示呢?

Docker attach does nothing

I set this up and the server is up and running but I can't access the admin console. I've done this previously with a Nukkit docker, but when I docker attach this one I get attached (no feedback), and typing in commands does nothing. I can't back out either. I have to kill SSH to get out.

如何查看日志

在原版启动控制台能显示玩家什么时候登陆,什么时候退出,在你项目里打开控制台是不会显示之前的记录,请问如何才能看到?

无法运行

华为云学生机,arm Ubuntu18.04 无法运行
日志
standard_init_linux.go:211: exec user process caused "exec format error"

请问用docker-compose启动的容器如何进入控制台?

为了方便管理我的容器,我用了docker-compose。但是我在部署bedrock服务器后发现执行docker attach mcpe后什么都无法操作,连退出都不行
下面是我的docker-compose.yml文件

  mcbe:
    image: lomot/minecraft-bedrock
    container_name: mcpe
    network_mode: "host"
    restart: always
    volumes:
      - ../data:/data

docker run -it这个方法启动的bedrock容器是可以通过docker attach mcpe进入控制台的,但是我不喜欢用这个方式启动容器

建议用Wine+Windows BDS内核,优化后特别流畅,CPU占有率降低到50%以下。

https://github.com/codehz/ElementZero
实现了在Linux上运行Windows版本的BDS内核。
codehz发现Windows版本的BDS相比Linux版本的BDS,有大幅度的优化。
(我甚至怀疑微软故意黑Linux。一直不解决Linux BDS高CPU的问题)

codehz已经提供了一个docker image,可惜需要用uid:1000启动。
https://github.com/codehz/ElementZero/wiki/Docker-image-for-wine
我实测发现CPU占用大幅度降低,服务器也非常流畅。效果相当不错! CPU占用大幅度降低,视距32时CPU占用50%左右。以前至少200%以上。

现在的问题是不能用root来启动这个docker容器,很麻烦,而且也没有dockerfile,无法定制。
如果你有兴趣,能不能用这个方法做一个docker镜像呢?

以下是CodeHZ提供的一些参考信息
https://hub.docker.com/layers/codehz/wine/bdlauncher-runtime/images/sha256-204b04f1def40ba2318f5e0ed497e40b660f3a3f8feb064077df788e6af7be0b?context=explore

CodeHz ง⍢⃝ว, [Feb 28, 2020 at 12:35:34 PM]:
...不是dockerfile构建出来的(

https://github.com/codehz/headless-wine

CodeHz ง⍢⃝ว, [Feb 28, 2020 at 12:38:02 PM (2020/2/28, 12:38:44 PM)]:
codehz/wine:vcruntime

的第二层(

![image](https://user-images.githubusercontent.com/816448/75518241-6c9cb100-5a3b-11ea-8892-e64cc752641a.png)


就是直接做wine容器啊

https://hertz.services/docker/codehz/wine/vcruntime/1
CodeHz ง⍢⃝ว, [Feb 28, 2020 at 2:05:25 PM]:
https://ipfs.hertz.services/ipfs/QmPyWg7kCK7NP2TMdgx1MeSJykhbBEkvUtTzWSyqN796zd/mwin.xz 来用这个跑_mod.exe
xz -d解压后跑
需要fuse支持
解压后接近一个G,但是已经包含了所有需要的文件

日志时间问题

为什么查看日志,里面记录的登录时间与机器的时间不相符
我的是上海的机子,11点左右登录的,它却记录2左右,查系统时间也是11点多,这是怎么回事?

关于Centos BDS依赖问题

想问下大佬可否有解决方案?
error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory

实际上已经安装openssl,是路径问题吗?

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.