From 7c23d7a08645db031817e72f08ba2cf84285dafa Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Thu, 15 Sep 2022 21:59:43 -0400 Subject: [PATCH] add docs for packet inspector: quick start w/ vanilla server in docker (#63) --- packet_inspector/README.md | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/packet_inspector/README.md b/packet_inspector/README.md index 8b06f8f..9bad389 100644 --- a/packet_inspector/README.md +++ b/packet_inspector/README.md @@ -14,7 +14,7 @@ First, start a server ```sh cargo r -r --example conway ``` -In a separate terminal, start the packet inspector. +In a separate terminal, start the packet inspector. ```sh cargo r -r -p packet_inspector -- 127.0.0.1:25566 127.0.0.1:25565 @@ -27,3 +27,34 @@ If you only want to see errors, direct `stdout` elsewhere. ```sh cargo r -r -p packet_inspector -- 127.0.0.1:25566 127.0.0.1:25565 > log.txt ``` + +## Quick start with Vanilla Server via Docker + +Start the server +```bash +docker run -e EULA=TRUE -e ONLINE_MODE=false -d -p 25565:25565 --name mc itzg/minecraft-server +``` + +View server logs +```bash +docker logs -f mc +``` + +Server Rcon +```bash +docker exec -i mc rcon-cli +``` + +In a separate terminal, start the packet inspector. + +```sh +cargo r -r -p packet_inspector -- 127.0.0.1:25566 127.0.0.1:25565 +``` + +Open Minecraft and connect to `localhost:25566`. + +Clean up +``` +docker stop mc +docker rm mc +```