# Destroying docker container does not destroy the database?

**URL:** <https://meta.discourse.org/t/destroying-docker-container-does-not-destroy-the-database/26411>\
**Category:** Self-hosting\
**Created:** [March 16, 2015, 9:18pm UTC](https://meta.discourse.org/t/destroying-docker-container-does-not-destroy-the-database/26411 "2015-03-16T21:18:41Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![jamesmarkcook](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jamesmarkcook/32/168563_2.png) [@jamesmarkcook](https://meta.discourse.org/u/jamesmarkcook)\
**Post date:** [March 16, 2015, 9:18pm UTC](https://meta.discourse.org/t/destroying-docker-container-does-not-destroy-the-database/26411/1 "2015-03-16T21:18:42Z")

</div>

So…wait for it…I destroyed my postgres and web\_only containers, bootstrapped them again and hang on..what’s that? My forum is still there?!

I’m quite confused and I’m not sure what’s going on. I used one of the import scripts to import some data, but now I want a fresh install to run the script again (something wasn’t perfect first time round).

However, I cannot accomplish that. Does anybody have any ideas how my data can still be there after destroying the Postgres container and re-boostrapping?

FYI, I’m using a custom docker image but all it does extra from the main docker one is change the folder directory names and install some linux dependencies for mysql.

I’m wondering if somehow I’ve committed the data to my docker image on docker hub. But even that is just an image with my personal fork of Docker. I’m not committing postgres stuff. Hmm…

---

_[View the full topic](https://meta.discourse.org/t/destroying-docker-container-does-not-destroy-the-database/26411)._
