Skip to content

Commit 45e664c

Browse files
committed
cvm: Pruning unused images
1 parent d30c506 commit 45e664c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

basefiles/app-compose.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ case "$RUNNER" in
2222
tdxctl notify-host -e "boot.error" -d "failed to start containers"
2323
exit 1
2424
fi
25+
echo "Pruning unused images"
26+
docker image prune -af
27+
echo "Pruning unused volumes"
28+
docker volume prune -f
2529
;;
2630
"bash")
2731
chmod +x /usr/bin/containerd-shim-runc-v2

0 commit comments

Comments
 (0)