title: Docker Postgres Clear all Data
body: <p>I'm running postgress inside a docker container. I'm trying to completely remove it and re-install. </p>
  
  <p>Everytime I start it seems to be 'restarting' rather than making a fresh instance.</p>
  
  <p>When I re-start the new instance I get a message like this telling me when I last shut down the previous database:</p>
  
  <pre><code>postgres            | LOG:  database system was shut down at 2017-04-25 18:28:02 UTC
  </code></pre>
  
  <p>These are the steps I took in an attempt to completely remove the database.</p>
  
  <pre><code>  docker kill $(docker ps -q) # stop all containers
    docker rm $(docker ps -a -q) # remove all containers 
    docker rmi $(docker images -q) # remove all images
    docker network prune # remove all networks
    docker volume prune # remove all volumes 
  </code></pre>
  
  <p>Yet I always get the log indicating when the previous database was shutdown. How can I completely remove all traces of the database?</p>