How to Fix Docker Container That Won't Start or Keeps Exiting — Read the Exit Code First
Your Docker container starts and immediately exits, or it won't start at all. Before you search for random solutions, check the exit code — it tells you exactly what went wrong. Exit 0 means the container finished normally. Exit 1 means the app inside crashed. Exit 137 means Linux killed it because it ran out of memory