Postgres stuck in restart loop

The postgres docker container is constantly restarting due to an invalid transaction record (?)

db_1      | 2024-09-26 16:05:28.440 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
db_1      | 2024-09-26 16:05:28.440 UTC [1] LOG:  listening on IPv6 address "::", port 5432
db_1      | 2024-09-26 16:05:28.442 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
db_1      | 2024-09-26 16:05:28.446 UTC [15] LOG:  database system was shut down at 2024-09-26 15:43:30 UTC
db_1      | 2024-09-26 16:05:28.446 UTC [15] LOG:  invalid resource manager ID 32 at 0/17063C0
db_1      | 2024-09-26 16:05:28.446 UTC [15] LOG:  invalid primary checkpoint record
db_1      | 2024-09-26 16:05:28.446 UTC [15] PANIC:  could not locate a valid checkpoint record
db_1      | 2024-09-26 16:05:28.860 UTC [1] LOG:  startup process (PID 15) was terminated by signal 6: Aborted
db_1      | 2024-09-26 16:05:28.860 UTC [1] LOG:  aborting startup due to startup process failure
db_1      | 2024-09-26 16:05:28.878 UTC [1] LOG:  database system is shut down

which means i can’t actually connect to the DB during the initial startup. i’m on debian 12, and have tried this process a few times before realizing what the actual issue was. any guidance would be appreciated.

i resolved this by clearing my pgdata folder.