Improve uninstallation instructions

Also switches to using `docker system prune -a` for a less invasive
cleanup of Docker images and related resources.
This commit is contained in:
Slavi Pantaleev
2020-11-24 09:38:17 +02:00
parent 3e2355282b
commit 27c9014cb8
2 changed files with 26 additions and 10 deletions

View File

@ -24,9 +24,9 @@ else
find /etc/cron.d/ -name "matrix-*" -delete
echo "Remove matrix scripts"
find {{ matrix_local_bin_path }}/ -name "matrix-*" -delete
echo "Remove every docker images"
docker rmi $(docker images -aq)
echo "Remove docker matrix network"
echo "Remove unused Docker images and resources"
docker system prune -af
echo "Remove Docker matrix network (should be gone already, but ..)"
docker network rm {{ matrix_docker_network }}
echo "Remove {{ matrix_base_data_path }} directory"
rm -fr "{{ matrix_base_data_path }}"