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 ?
pfaffman
(Jay Pfaffman)
17 Abril, 2016 16:33
2
This worked for me:
cd /var/discourse
cp containers/app.yml containers/name.yml
./launcher stop app
./launcher bootstrap name
./launcher start name
3 Me gusta
pfaffman
(Jay Pfaffman)
18 Abril, 2016 17:15
3
OH, but isn’t that what DOCKER_USE_HOSTNAME
does?
1 me gusta
that helped me also. thanks!
sam
(Sam Saffron)
22 Abril, 2016 01:41
5
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.
10 Me gusta