# Install v1.7.2 using Docker

**URL:** https://meta.discourse.org/t/install-v1-7-2-using-docker/59635
**Category:** Development
**Created:** [March 21, 2017, 5:50pm UTC](https://meta.discourse.org/t/install-v1-7-2-using-docker/59635 "2017-03-21T17:50:12Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Kel](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@Kel](https://meta.discourse.org/u/Kel)
#### Post date: [March 21, 2017, 5:50pm UTC](https://meta.discourse.org/t/install-v1-7-2-using-docker/59635/1 "2017-03-21T17:50:12Z")

</div>

Hi there,

First post so hello 🙂

I am trying to install Discourse on a Digital Ocean Droplet all goes well, except I need to run a script that only works with v1.7.2 (long story just trust me!)

Tried everything I can think of to get Docker to do a clean install of v1.7.2 - does anyone know the correct procedure please?

Any help would be very much appreciated.

Kind regards  
Kel

---

<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: [March 21, 2017, 5:54pm UTC](https://meta.discourse.org/t/install-v1-7-2-using-docker/59635/2 "2017-03-21T17:54:26Z")

</div>

In `app.yml` where it says “tests-passed” you can put the the Git ID of the version you want.

So I think you want

```
  version: 839a5e6e427bdffb87596f8fbe51c37796e40da3

```

`version` is in the file, but commented out.

---

<div class="post-metadata">

### Author: ![Kel](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@Kel](https://meta.discourse.org/u/Kel)
#### Post date: [March 21, 2017, 5:59pm UTC](https://meta.discourse.org/t/install-v1-7-2-using-docker/59635/3 "2017-03-21T17:59:06Z")

</div>

Thanks!

I searched and found that solution earlier (it works using ‘v1.7.2’) but it seems to be only be able to do that as a rebuild the .yml file doesn’t exist until after the newest version has been installed.

These are the instructions I followed:

[discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md)

I need to be able to change the version number between the install and the setup.

All I have managed to do so far is install and then downgrade, that’s not what I am looking for.

The reason for this is that there seems to be some kind of database incompatibility with the script I am trying to run and the rebuild doesn’t fix it - although this is a guess!

I feel like I am missing something obvious.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [March 21, 2017, 6:31pm UTC](https://meta.discourse.org/t/install-v1-7-2-using-docker/59635/4 "2017-03-21T18:31:12Z")

</div>

You can create `app.yml` manually (there is a template in `/var/discourse/samples/standalone.yml`) – but if you already bootstrapped and want to downgrade, this is easy as long _as you are willing to lose your data_. Simply update `app.yml`, then run this:

```bash
cd /var/discourse/
./launcher stop app
rm -rf shared/standalone/ # wipe shared volume
./launcher rebuild app

```

> ⚠ Executing these commands will **completely reset Discourse**! All content, users and settings will be deleted.

---

<div class="post-metadata">

### Author: ![Kel](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@Kel](https://meta.discourse.org/u/Kel)
#### Post date: [March 21, 2017, 6:32pm UTC](https://meta.discourse.org/t/install-v1-7-2-using-docker/59635/5 "2017-03-21T18:32:50Z")

</div>

> [@fefrei](#):
>
> rm -rf shared/standalone/ # wipe shared volume

I defintiely want to lose the data, everything needs to go so it’s a complete fresh install…  
This is probably what I was missing - thank you!!!

I’d done everything but this one line!!!

Thank you!!!

---

<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: [March 21, 2017, 6:32pm UTC](https://meta.discourse.org/t/install-v1-7-2-using-docker/59635/6 "2017-03-21T18:32:58Z")

</div>

You can `cp samples/standalone.yml containers` and edit it by hand, or use `./discourse-setup` and hit a control C after it’s through configuring. There’s an undocumented 5 second pause before it starts the build, for just that purpose.

---

<div class="post-metadata">

### Author: ![Kel](https://avatars.discourse-cdn.com/v4/letter/k/a698b9/32.png) [@Kel](https://meta.discourse.org/u/Kel)
#### Post date: [March 21, 2017, 6:51pm UTC](https://meta.discourse.org/t/install-v1-7-2-using-docker/59635/7 "2017-03-21T18:51:20Z")

</div>

Brillaint, this is the magic dust I was looking for and couldn’t find 😃

I am already rebuilding and know it’s working as I’ve seen all the database commands run again - so have a lot of confidence I am going to end up with a 1.7.2 and corresponding database!

We will see, I will let you know!

Thanks again 😃
