Update deploy.sh

This commit is contained in:
AnJia 2018-08-27 12:10:23 +08:00 committed by GitHub
parent 3a5633d3c2
commit fab677d725
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -200,8 +200,8 @@ do
docker_dir=$(docker info | grep "Docker Root Dir" | cut -d':' -f2)
used=$(df -h ${docker_dir}|awk '{if(NR>1)print $5}')
echo -e "${red} duration:${duration}s, docker root dir :${docker_dir}:used:${used}"
[[ ${used} > '70%' ]] && docker system prune -f -a
sleep 30
[[ ${used} > '60%' ]] && docker system prune -f -a
sleep 10
fi
done