# Docker dev database ownership and strange path problems

**URL:** <https://meta.discourse.org/t/docker-dev-database-ownership-and-strange-path-problems/75926>\
**Category:** Development\
**Created:** [13 Diciembre, 2017 00:43 UTC](https://meta.discourse.org/t/docker-dev-database-ownership-and-strange-path-problems/75926 "2017-12-13T00:43:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [13 Diciembre, 2017 00:43 UTC](https://meta.discourse.org/t/docker-dev-database-ownership-and-strange-path-problems/75926/1 "2017-12-13T00:43:53Z")

</div>

There are a couple snags with docker\_dev last I tried. The biggest is that I couldn’t connect to the database without entering the container and editing the postgres config file.

I was also unable to get `reset_db` to work. I was able to create a new database like this:

```plaintext
cd ~/src/discourse
docker stop discourse_dev # stop the development instance
sudo rm -rf data/postgres/ # delete the database
docker start discourse_dev # re-start the development instance
sleep 5
bin/docker/rake db:migrate # set up an empty database

```

What I’d really like to be able to do with it is to use it to run one import while I’m running (or debugging) another with my dev instance, but they share the same uploads directory.

---

_[View the full topic](https://meta.discourse.org/t/docker-dev-database-ownership-and-strange-path-problems/75926)._
