I have a Linux server build running on docker with Unity. Whatever I try, I cannot get the container to stop. So in the dashboard, the server will always stay "active". Here are the methods I tried:
Process.GetCurrentProcess().Close() ; does nothing Process.GetCurrentProcess().Kill(); returns NotSupportedException: This platform does not support file handle duplication. Process.GetCurrentProcess().Stop(); does nothing Application.Quit(); seems to stop unity but does not stop the docker process Environment.Exit( 0 ); stops the execution but doesn't clear the container
How can I get the server to terminate ?