DevOps - careful docker cleanup on an EC2 instance
Steps:
- restore EC2 instance from backup (additional instance will created)
- check and save disk space and Kotahi Docker stack status on restored instance
- run the following Docker cleanup pipeline:
docker container prune -f &&\
docker image prune -a -f &&\
docker volume prune -f
- restart Kotahi Docker stack and check site working and disk space
- if all is OK repeat running cleanup pipeline on eLife Prod server and add pipeline in cronjob