title: Docker postgres invalid primary checkpoint record
body: <p>I've been trying to get postgres running in Docker (on Windows) with a persistent data storage and thought I finally had it, but now when I try to start up my container I get the following errors:</p>
  
  <pre><code>LOG:  invalid primary checkpoint record
  LOG:  invalid secondary checkpoint record
  PANIC:  could not locate a valid checkpoint record
  </code></pre>
  
  <p>Here's I got my container up and running to start with:</p>
  
  <pre><code>docker volume create ct_data
  docker run --name postgres_ct -v ct_data:/var/lib/postgresql/data -p 5432:5432 postgres
  </code></pre>
  
  <p>I then connected to it using pgAdmin, created a new table, and imported a postgres dump file using the restore option.  The data loaded without issue.  I started a second container using the same volume as above, but with a different name and port number to test it and I was able to connect, so I shut it down.</p>
  
  <p>Now, an hour later, I found my original container was stopped automatically so I tried to start it back up and got the errors above.  This is my first attempt at using Docker, so it's very possible I'm missing something simple here. </p>