FATAL: bogus data in lock file “postmaster.pid” after repairing disk and changing the data folder location postgres docker
问题 We had a problem with our hard drive which contains the data folder for postgres database we repaired that hard and move the data folder to new hard drive now when we try to start our db container we get following error. db_1 | db_1 | PostgreSQL Database directory appears to contain a database; Skipping initialization db_1 | db_1 | FATAL: bogus data in lock file "postmaster.pid": "" I tried to remove the postmaster.pid file but then I get the following error, db_1 | PostgreSQL Database