Skip to content

Commit 5e83c01

Browse files
authored
Merge pull request Dstack-TEE#105 from Dstack-TEE/prune-images
cvm: Pruning unused container images
2 parents 5517b3c + 45e664c commit 5e83c01

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)