add cleanup to podman container update
This commit is contained in:
parent
eecd84f497
commit
0309679fbe
1 changed files with 8 additions and 0 deletions
|
|
@ -44,6 +44,14 @@ let
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Container update scan complete!"
|
echo "Container update scan complete!"
|
||||||
|
|
||||||
|
# Clean up dangling images
|
||||||
|
echo "Cleaning up dangling images..."
|
||||||
|
if podman image prune -af; then
|
||||||
|
echo "Image cleanup complete!"
|
||||||
|
else
|
||||||
|
echo "Warning: Image cleanup failed"
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue