docker-gc icon indicating copy to clipboard operation
docker-gc copied to clipboard

Add flag to not garbage collect any containers.

Open tomstockton opened this issue 9 years ago • 1 comments
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

tomstockton avatar Jul 14 '16 10:07 tomstockton

👍 This is generally useful outside of ECS as well, I'd love to see it merged in.

codekitchen avatar Oct 05 '16 21:10 codekitchen