# How to rename app.yml to myCompanyName.yml after deploy?

**URL:** https://meta.discourse.org/t/how-to-rename-app-yml-to-mycompanyname-yml-after-deploy/42625
**Category:** Support
**Created:** [15 Abril , 2016 17:28 UTC](https://meta.discourse.org/t/how-to-rename-app-yml-to-mycompanyname-yml-after-deploy/42625 "2016-04-15T17:28:27Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![andrejkosyak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrejkosyak/32/121582_2.png) [@andrejkosyak](https://meta.discourse.org/u/andrejkosyak)
#### Post date: [15 Abril , 2016 17:28 UTC](https://meta.discourse.org/t/how-to-rename-app-yml-to-mycompanyname-yml-after-deploy/42625/1 "2016-04-15T17:28:27Z")

</div>

Hi everyone.

Someone has an idea how can i rename app.yml to another name and rebuild the container, not losing the data? I actually just want to change the name of the container, so that when i do `docker ps` i see **myCompanyName** as name of the container, and not just **app**?

---

<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: [17 Abril , 2016 16:33 UTC](https://meta.discourse.org/t/how-to-rename-app-yml-to-mycompanyname-yml-after-deploy/42625/2 "2016-04-17T16:33:10Z")

</div>

This worked for me:

```plaintext
cd /var/discourse
cp containers/app.yml containers/name.yml
./launcher stop app
./launcher bootstrap name
./launcher start name

```

---

<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: [18 Abril , 2016 17:15 UTC](https://meta.discourse.org/t/how-to-rename-app-yml-to-mycompanyname-yml-after-deploy/42625/3 "2016-04-18T17:15:04Z")

</div>

OH, but isn’t that what `DOCKER_USE_HOSTNAME` does?

---

<div class="post-metadata">

### Author: ![andrejkosyak](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andrejkosyak/32/121582_2.png) [@andrejkosyak](https://meta.discourse.org/u/andrejkosyak)
#### Post date: [19 Abril , 2016 09:44 UTC](https://meta.discourse.org/t/how-to-rename-app-yml-to-mycompanyname-yml-after-deploy/42625/4 "2016-04-19T09:44:49Z")

</div>

that helped me also. thanks!

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [22 Abril , 2016 01:41 UTC](https://meta.discourse.org/t/how-to-rename-app-yml-to-mycompanyname-yml-after-deploy/42625/5 "2016-04-22T01:41:47Z")

</div>

> [@andrejkosyak](#):
>
> Someone has an idea how can i rename app.yml to another name and rebuild the container, not losing the data? I actually just want to change the name of the container, so that when i do docker ps i see myCompanyName as name of the container, and not just app?

```
./launcher destroy app
mv app.yml initech.yml
./launcher rebuild initech

```

That’s all, no data is lost.

All refs inside the container definition are hardcoded and do not depend on the yaml filename.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [9 Janeiro , 2019 23:50 UTC](https://meta.discourse.org/t/how-to-rename-app-yml-to-mycompanyname-yml-after-deploy/42625/6 "2019-01-09T23:50:35Z")

</div>



---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [10 Janeiro , 2019 16:16 UTC](https://meta.discourse.org/t/how-to-rename-app-yml-to-mycompanyname-yml-after-deploy/42625/7 "2019-01-10T16:16:48Z")

</div>


