This image will allow you to start a non Java Minecraft server.
If you don't have any config files just start the server and stop it again and all the default files and folders will appear in your data folder.
docker run -itd \
--name bedrock \
-v "/yourDataPath:/bedrockConfig" \
-p 19132:19132/udp \
weheartgaming/bedrock-server:latest
version: "3"
services:
bedrock:
container_name: bedrock
image: weheartgaming/bedrock-server:latest
stdin_open: true
tty: true
ports:
- 19132:19132/udp
volumes:
- /yourDataPath:/bedrockConfig
restart: unless-stopped
We added the -it
flags so you can attach to the server and run commands.
To access the running container, open your preferred terminal and run docker attach bedrock
. You will now be able to run minecraft server commands.
To exit the attached server, without shutting it down, use the following key combination ctrl-p ctrl-q
1.19.10.03
,latest