-
Notifications
You must be signed in to change notification settings - Fork 0
teardown
Jakob Runge edited this page Jan 13, 2016
·
1 revision
Shortly after the deployment of this setup it became clear that we'd rather transition to the clld
setup developed by Robert.
Therefore the time will come when we want to remove this setup.
To do that in a save manner please follow these steps:
- Make sure the postgres/backup and mariadb/backups containers have recent backups.
Backups are made every
4
hours, but can also be triggered manually by killing a specific backup container and starting it again. Since the first thing the containers do is a backup, one can just watch the containers logs or the backup files. Remember to copy these database backups to a save place! - Kill running containers.
We assume that this setup is the only one that runs containers,
so it's not a problem to just kill all running containers with
docker ps -q | xargs docker kill
. - Remove stopped containers.
We assume that all stopped containers should be removed,
which can be done with
docker ps -aq | xargs docker rm
. - Remove the containers images.
We assume that all docker images shall be removed,
which can be done with
docker images -q | xargs docker rmi
. - Remove the upstart conf file which is located at
/etc/init/lingdb.conf
. - Remove
/srv/container
.