# 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:** 132

<div class="post-metadata">

### Author: ![bletch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bletch/32/69088_2.png) [@bletch](https://meta.discourse.org/u/bletch)
#### Post date: [December 11, 2020, 8:40pm UTC](https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009/132 "2020-12-11T20:40:35Z")

</div>

Thanks for the suggestion @mentalstring . Oddly, the Postgres main log `/var/log/postgresql/postgresql-13-main.log` is empty.

But there is a clue in some of the other files under the `/var/log/` structure. The file `/var/log/postgres/current` is completely filled with repeated errors like this.

```plaintext
2020-12-11 20:06:34.875 UTC [11680] FATAL: database files are incompatible with server
2020-12-11 20:06:34.875 UTC [11680] DETAIL: The data directory was initialized by PostgreSQL version 12, which is not compatible with this version 13.1 (Debian 13.1-1.pgdg1
00+1).

```

Some judicious Googling reveals that the raw DB format is incompatible and that a `pg_upgrade` command needs to be run.

I can’t see that command in `PATH`. Either way, a further bit of Googling reveals that Docker-based system struggle with this as both the old and new versions of Postgres need to be present for it to work.

Some further questions for anyone that can help

- Is this a fundamental problem with using Docker in development for this upgrade?
- Did I somehow miss a step?
- Can I convert now?
- Last resort how can I nuke the current data so boot\_dev --init re-creates the database at Postgres 13?

Thanks in advance.

---

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