# Changing the hostname

**URL:** <https://meta.discourse.org/t/changing-the-hostname/23920>\
**Category:** Product Support\
**Tags:** docker\
**Created:** [2015 年 1 月 12 日午後 6:51 UTC](https://meta.discourse.org/t/changing-the-hostname/23920 "2015-01-12T18:51:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ZeroFlux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zeroflux/32/42184_2.png) [@ZeroFlux](https://meta.discourse.org/u/ZeroFlux)\
**Post date:** [2015 年 1 月 12 日午後 7:16 UTC](https://meta.discourse.org/t/changing-the-hostname/23920/2 "2015-01-12T19:16:09Z")

</div>

I think rebuilding the container will resolve your issue. Double-check the hostname details in the app.yml and make sure they’re saved to your liking. Then rebuild Discourse’s container, which destroys the old one, bootstraps a new one, and starts it up.

Navigate to the Discourse directory:

```
cd /var/discourse

```

Then use the rebuild command:

```
./launcher rebuild app

```

Hope that helps!

---

_[View the full topic](https://meta.discourse.org/t/changing-the-hostname/23920)._
