My metabase is not able to start

I followed the guidance from this ticket and have this issue resolved: Docker container fails with migration lock

That said, can anyone pls help explain why this is locked? And how to prevent this from happenning again?