update prune
This commit is contained in:
parent
2a8c964583
commit
94d8c61019
@ -19,7 +19,10 @@ export -f sync
|
|||||||
prune(){
|
prune(){
|
||||||
echo -e "🄿 🅁 🅄 🄽 🄴"
|
echo -e "🄿 🅁 🅄 🄽 🄴"
|
||||||
echo "Pruned Docker Images"
|
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
|
export -f prune
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user