# Install Discourse for development using Docker

**URL:** <https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009>\
**Category:** Developer Guides\
**Tags:** docker, dev-install, how-to\
**Created:** [November 16, 2018, 9:40am UTC](https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009 "2018-11-16T09:40:04Z")\
**Posts on this page:** 1\
**Showing post:** 167

<div class="post-metadata">

**Author:** ![mint\_saxon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mint_saxon/32/167253_2.png) [@mint\_saxon](https://meta.discourse.org/u/mint_saxon)\
**Post date:** [June 27, 2021, 10:23am UTC](https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009/167 "2021-06-27T10:23:55Z")

</div>

Thanks for this image, and the super-clear instructions!

I got `psql: error: FATAL: Peer authentication failed for user "postgres"` when running `d/boot_dev --init`.

Although the `pg_hba.conf` in `data/postgres/` had all the authentication methods set to “trust”, there was another one in `/etc/postgresql/13/main/` which had the defaults (“peer” / “md5”).

I edited `/etc/postgresql/13/main/pg_hba.conf`, changed all the methods to `trust`, did `d/shell` and ran `sv restart postgres` to pick up the changes – and was able to continue by running `d/bundle install; d/rake db:migrate RAILS_ENV=development; d/rake admin:create` manually.

Leaving here in case it’s helpful for anyone else!

---

_[View the full topic](https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009)._
