docker-gc
docker-gc copied to clipboard
Add flag to not garbage collect any containers.
trafficstars
If the user would prefer to not garbage collect any containers then specify environment variable:
REMOVE_CONTAINERS=1
This is useful specifically in an environment such as Amazon ECS whereby containers are already cleaned up (and removal of them by another service causes issues) but images are not.
https://github.com/aws/amazon-ecs-agent/issues/364 https://github.com/aws/amazon-ecs-agent/issues/118
👍 This is generally useful outside of ECS as well, I'd love to see it merged in.