[swarm-cleaner] docker image prune -a deletes all images, not just dangling ones #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The current command removes all unused images including tagged ones, which can break running services that rely on older image versions (e.g. for rollbacks).
File:
swarm-cleaner/compose-stack.ymlCurrent (bad):
Better (safe):
This keeps tagged images that are not currently in use, which is safer for Swarm deployments where you might need to rollback.