Merge pull request #30 from Heavybullets8/prune

Prune
This commit is contained in:
Heavybullets8 2022-12-14 18:44:13 +00:00 committed by GitHub
commit b27d01fdbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,9 @@ export -f sync
prune(){
echo -e "🄿 🅁 🅄 🄽 🄴"
echo "Pruned Docker Images"
docker image prune -af | grep "^Total" || echo "Failed to Prune Docker Images"
if ! cli -c 'app container config prune prune_options={"remove_unused_images": true, "remove_stopped_containers": true}' | head -n -4; then
echo "Failed to Prune Docker Images"
fi
}
export -f prune