Create Minecraft Server in docker.


The docker image gives a Minecraft Server that will automatically download the most recent stable version at startup. You can run/move up to a specific version or the most recent snapshot





You can use the most recent stable version, and run simply this command:

Log in as: root

[root@localhost ~]#docker run -d -it -p 25565:25565 -e EULA=TRUE itzg/minecraft-server


now  you will edit online-mode=true to online-mode=false in Server.properties file.

[root@localhost ~]#nano /var/lib/docker/volumes/d65a41e33e759ebb7d7cbd83cc2dd806b305b86c487fbc931510c0ba19b0e29c/_data/server.properties







#Minecraft server properties

#Wed Sep 07 09:01:18 UTC 2022

enable-jmx-monitoring=false

rcon.port=25575

level-seed=

gamemode=survival

enable-command-block=false

enable-query=false

generator-settings={}

enforce-secure-profile=true

level-name=world

motd=A Vanilla Minecraft Server powered by Docker

query.port=25565

pvp=true

generate-structures=true

max-chained-neighbor-updates=1000000

difficulty=easy

network-compression-threshold=256

max-tick-time=60000

require-resource-pack=false

use-native-transport=true

max-players=20

online-mode=false

enable-status=true

allow-flight=false

broadcast-rcon-to-ops=true

view-distance=10

server-ip=

resource-pack-prompt=

allow-nether=true

server-port=25565

enable-rcon=true

sync-chunk-writes=true

op-permission-level=4

prevent-proxy-connections=false

hide-online-players=false

resource-pack=

entity-broadcast-range-percentage=100

simulation-distance=10

rcon.password=minecraft

player-idle-timeout=0

force-gamemode=false

rate-limit=0

hardcore=false

white-list=false

broadcast-console-to-ops=true

spawn-npcs=true

previews-chat=false

spawn-animals=true

function-permission-level=2


Ctrl+x and y then press enter key to save and exit.

Now you need to restart your Minecraft containers on the server. With Containers running, you can now access the Minecraft server with your server IP.

RCON is empowered naturally, so you can use executive into the container to get to the Minecraft server console:


docker exec -i minecraft rcon-cli


How to Add Operators to Your Minecraft Server? 


Go to the Server Console tab. Type




docker attach minecraft

op playername


 "op (username)" in the command line and press Enter. You will see a message that says "Player is now an operator".

একটি মন্তব্য পোস্ট করুন

0 মন্তব্যসমূহ

Close Menu