fix: force delete server container on realm deletion

This commit is contained in:
CyberL1 2024-12-14 14:06:30 +01:00
parent 27a5d20888
commit 6cb43fcaa3

View File

@ -68,7 +68,7 @@ namespace Minecraft_Realms_Emulator.Modes.Realms.Helpers
ProcessStartInfo serverProcessInfo = new(); ProcessStartInfo serverProcessInfo = new();
serverProcessInfo.FileName = "docker"; serverProcessInfo.FileName = "docker";
serverProcessInfo.Arguments = $"container rm realm-server-{world.Id}"; serverProcessInfo.Arguments = $"container rm -f realm-server-{world.Id}";
Process serverProcess = new(); Process serverProcess = new();
serverProcess.StartInfo = serverProcessInfo; serverProcess.StartInfo = serverProcessInfo;