{"action":"closed","issue":{"url":"https://api.github.com/repos/deis/deis/issues/3209","labels_url":"https://api.github.com/repos/deis/deis/issues/3209/labels{/name}","comments_url":"https://api.github.com/repos/deis/deis/issues/3209/comments","events_url":"https://api.github.com/repos/deis/deis/issues/3209/events","html_url":"https://github.com/deis/deis/issues/3209","id":60016807,"number":3209,"title":"Create a config variable to set the number of Docker images to keep for an app","user":{"login":"mastephens","id":1707004,"avatar_url":"https://avatars.githubusercontent.com/u/1707004?v=3","gravatar_id":"","url":"https://api.github.com/users/mastephens","html_url":"https://github.com/mastephens","followers_url":"https://api.github.com/users/mastephens/followers","following_url":"https://api.github.com/users/mastephens/following{/other_user}","gists_url":"https://api.github.com/users/mastephens/gists{/gist_id}","starred_url":"https://api.github.com/users/mastephens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mastephens/subscriptions","organizations_url":"https://api.github.com/users/mastephens/orgs","repos_url":"https://api.github.com/users/mastephens/repos","events_url":"https://api.github.com/users/mastephens/events{/privacy}","received_events_url":"https://api.github.com/users/mastephens/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-05T21:12:39Z","updated_at":"2015-03-05T21:16:34Z","closed_at":"2015-03-05T21:16:34Z","body":"Running and pushing many different updates to a Deis environment can add up to a lot of Docker images.  I have no reason for keep ALL Docker images for an app along the way.   \r\n\r\nIt would be nice if we could add a config var like DIMAGE_CNT=3 that would force the builder to always remove any Docker images for an application that are not the most recent 3 images.\r\n\r\nThe goal is to prevent 100 different images from accumulating that haven't been used in weeks and are just consuming disk space.  \r\n\r\n"}}