FalseInquisition
FalseInquisition
AAdmincraft
Created by FalseInquisition on 8/27/2024 in #questions
Attaching through docker/podman doesn't work as expected.
I'm setting up a Minecraft server for a mod called Better Than Adventure, which is for quite an old version that doesn't have RCON support. The specific details of the mod shouldn't really matter besides that it's based on Minecraft Beta 1.7.3, and I'm using a fork of fabric known as "Babric" Due to this I tried attaching directly to the server using podman attach server, which shows me the logs but doesn't appear to let me interact with it (I tried running help and ? but neither of them did anything. I don't have much experience self hosting Minecraft servers specifically but I do have a lot of experience with other kinds of servers. This is the Dockerfile I'm running:
FROM eclipse-temurin:17-jre
WORKDIR /server/
CMD ["java", "-Xmx3328M", "-Xms3328M", "-XX:+UnlockExperimentalVMOptions", "-XX:+UnlockDiagnosticVMOptions", "-XX:+AlwaysActAsServerClassMachine", "-XX:+AlwaysPreTouch", "-XX:+DisableExplicitGC", "-XX:+UseNUMA", "-XX:NmethodSweepActivity=1", "-XX:ReservedCodeCacheSize=400M", "-XX:NonNMethodCodeHeapSize=12M", "-XX:ProfiledCodeHeapSize=194M", "-XX:NonProfiledCodeHeapSize=194M", "-XX:-DontCompileHugeMethods", "-XX:MaxNodeLimit=240000", "-XX:NodeLimitFudgeFactor=8000", "-XX:+UseVectorCmov", "-XX:+PerfDisableSharedMem", "-XX:+UseFastUnorderedTimeStamps", "-XX:+UseCriticalJavaThreadPriority", "-XX:ThreadPriorityPolicy=1", "-XX:+UseZGC", "-XX:AllocatePrefetchStyle=1", "-XX:-ZProactive", "-XX:ConcGCThreads=2", "-jar", "fabric-server-launch.jar"]
FROM eclipse-temurin:17-jre
WORKDIR /server/
CMD ["java", "-Xmx3328M", "-Xms3328M", "-XX:+UnlockExperimentalVMOptions", "-XX:+UnlockDiagnosticVMOptions", "-XX:+AlwaysActAsServerClassMachine", "-XX:+AlwaysPreTouch", "-XX:+DisableExplicitGC", "-XX:+UseNUMA", "-XX:NmethodSweepActivity=1", "-XX:ReservedCodeCacheSize=400M", "-XX:NonNMethodCodeHeapSize=12M", "-XX:ProfiledCodeHeapSize=194M", "-XX:NonProfiledCodeHeapSize=194M", "-XX:-DontCompileHugeMethods", "-XX:MaxNodeLimit=240000", "-XX:NodeLimitFudgeFactor=8000", "-XX:+UseVectorCmov", "-XX:+PerfDisableSharedMem", "-XX:+UseFastUnorderedTimeStamps", "-XX:+UseCriticalJavaThreadPriority", "-XX:ThreadPriorityPolicy=1", "-XX:+UseZGC", "-XX:AllocatePrefetchStyle=1", "-XX:-ZProactive", "-XX:ConcGCThreads=2", "-jar", "fabric-server-launch.jar"]
And this is the command I'm using to start it:
podman run -d -p 69:25565/tcp -v /home/false/grey/server/:/server/ --name server server
podman run -d -p 69:25565/tcp -v /home/false/grey/server/:/server/ --name server server
The server is a Raspberry Pi 5 running Diet Pi (Debian 12)
19 replies