首页 > 其他分享 >docker PANIC: could not locate a valid checkpoint record

docker PANIC: could not locate a valid checkpoint record

时间:2022-11-22 15:59:25浏览次数:44  
标签:locate postgresql postgres lib could checkpoint docker data

docker postgresql 启动异常

  • 一般是非正常的关闭
  • 造成事务的日志文件损坏了

恢复办法

  • 关闭或者删除当前容器
  • 使用交互方式启动
docker run -it -v /Users/jimogangdan/data/pgsql:/var/lib/postgresql/data postgres:latest /bin/zsh

使用postgresql回复日志

gosu postgres pg_resetwal -f /var/lib/postgresql/data

标签:locate,postgresql,postgres,lib,could,checkpoint,docker,data
From: https://www.cnblogs.com/guanchaoguo/p/16915334.html

相关文章