- Create a volume (file system) for the server:
docker volume create mc-volume
- Download and run the MineCraft Bedrock Server:
Creative mode with OPS and cheats on:
docker run -d -it --name creative_minecraft_2 -e EULA=TRUE -e GAMEMODE=creative -e SERVER_NAME=My_Server -e OPS=Steve -e ENABLE_COMMAND_BLOCK=true -e ALLOW_CHEATS=true -p 19132:19132/udp -v mc-volume:/data itzg/minecraft-bedrock-server
OPS: change “Steve” to your Minecraft username
NAME: the name of the docker service (do docker ps -a
to check the ID)
SERVER_NAME: change to the name you want to show for your server on LAN
mc-volume is located in a folder (/var/lib/docker/volumes/mc-volume/_data), you can change settings there eg. nano server.properties
(as root only so first do sudo su
) as well as add mods, see docs for details:
Note: users are given OPS on signup, if you change OPS later it doesn’t stick!
OR: Survival mode without any cheats:
docker run -d -it --name mc-server -e EULA=TRUE -p 19132:19132/udp -v mc-volume:/data itzg/minecraft-bedrock-server
- wait patiently for above to run
- –
docker ps
– check if it says healthy, running or starting. If starting, wait a bit and try again before connecting. - finally, connect with android/windows/linux device. The server should show up if on the same network!
Running the already installed app:
- is it running aleady?
docker ps
- is it installed but not running?
docker ps -a
- start or stop the already installed server:
docker start serverid
docker stop serverid
Replace serverid with the id you saw when running docker ps -a
- delete the installed server:
docker rm serverid
- delete server and all install packages:
docker rmi itzg/minecraft-bedrock-server
- where is the server data (also where to put mods):
docker volume inspect mc-volume
Mine is at /var/lib/docker/volumes/mc-volume – you can delete this folder (as root) if you want to re-install or remove your server.
More info:
- docker commands: https://raspberrytips.com/docker-on-raspberry-pi/
- Looking for a Raspberry Pi? Find one online at the Circus Scientist Shop!