added basic docker commands

This commit is contained in:
JaniSoto 2026-08-15 19:51:03 +00:00
parent f441c6b13c
commit 671a07a155
2 changed files with 28 additions and 5 deletions

View file

@ -33,6 +33,18 @@ When performing world resets or maintenance, classify directories according to t
## 3. Lifecycle & Reset Workflows ## 3. Lifecycle & Reset Workflows
### Basic Container Controls
```bash
# Start server container
docker start $INSTANCE_NAME
# Gracefully stop server container
docker stop $INSTANCE_NAME
# Restart server container
docker restart $INSTANCE_NAME
```
### Clean World Reset (Preserving Configs & Mods) ### Clean World Reset (Preserving Configs & Mods)
```bash ```bash
docker stop $INSTANCE_NAME docker stop $INSTANCE_NAME
@ -66,14 +78,25 @@ chmod -R u+rwX ~/mcserver
## 4. Diagnostics & Telemetry ## 4. Diagnostics & Telemetry
### Log Filter Pipeline (Errors & Warnings) ### Container Status & Resource Usage
```bash ```bash
docker logs $INSTANCE_NAME 2>&1 | grep -iE "ERROR|WARN|Exception|Fatal|Failed|Caused by" | tail -n 60 # Check container uptime & port mapping
docker ps -f "name=$INSTANCE_NAME" --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}"
# Check real-time CPU & memory utilization
docker stats $INSTANCE_NAME --no-stream
``` ```
### Health & Container Status Check ### Log Inspection Pipeline
```bash ```bash
docker ps -f "name=$INSTANCE_NAME" --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" # Live log tailing (last 100 lines + follow)
docker logs -f --tail 100 $INSTANCE_NAME
# Filtered log pipeline (Errors, Warnings, Exceptions & Failures)
docker logs $INSTANCE_NAME 2>&1 | grep -iE "ERROR|WARN|Exception|Fatal|Failed|Caused by" | tail -n 60
# Search logs for a specific keyword or mod name
docker logs $INSTANCE_NAME 2>&1 | grep -i "<keyword>"
``` ```
--- ---

View file

@ -1,7 +1,7 @@
#Packet Fixer config file. #Packet Fixer config file.
#Default values (minecraft default): nbtMaxSize 2097152, packetSize 1048576, decoderSize 8388608 and varInt21Size 3. #Default values (minecraft default): nbtMaxSize 2097152, packetSize 1048576, decoderSize 8388608 and varInt21Size 3.
#Max values are 2147483647 for packetSize/decoderSize/varInt21 and 9223372036854775807 for nbtMaxSize. #Max values are 2147483647 for packetSize/decoderSize/varInt21 and 9223372036854775807 for nbtMaxSize.
#Sat Aug 15 17:43:24 UTC 2026 #Sat Aug 15 19:40:58 UTC 2026
chunkPacketData=2097152 chunkPacketData=2097152
varLong=10 varLong=10
nbtMaxSize=2097152 nbtMaxSize=2097152