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)
April 17, 2016, 4:33pm
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 Likes
pfaffman
(Jay Pfaffman)
April 18, 2016, 5:15pm
3
OH, but isn’t that what DOCKER_USE_HOSTNAME
does?
1 Like
that helped me also. thanks!
sam
(Sam Saffron)
April 22, 2016, 1:41am
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 Likes