exclude some dirs in docker at update

This commit is contained in:
olli 2022-11-29 11:18:50 +01:00
parent 75ebb0a7f4
commit 3fdc969f39

View File

@ -66,7 +66,7 @@
g_echo_ok "check for updates"
# Clean up docker images
docker system prune -af
find /home/docker -maxdepth 1 -mindepth 1 -type d | grep -v "mailcow-dockerized" | while read docker
find /home/docker -maxdepth 1 -mindepth 1 -type d | egrep -v "mailcow-dockerized$|.del$|.bak$|.old$|var-lib-docker$" | while read docker
do
[ -f "$docker/docker-compose.yml" ] || continue
g_echo_ok "$docker"