Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated cleanup of non-ECS docker images #1380

Closed
mwarkentin opened this issue May 9, 2018 · 1 comment
Closed

Automated cleanup of non-ECS docker images #1380

mwarkentin opened this issue May 9, 2018 · 1 comment

Comments

@mwarkentin
Copy link

Summary

We're using Convox as a PaaS on top of ECS. During application deploys, the instance that is running the convox API container performs a docker pull on the image to be deployed in order to analyze it. This means that those instances in our cluster were using up docker disk space at a much higher rate than our others. We expected the ECS automated cleanup to be handling these images, but it appears that the cleanup process only cleans up images created through ECS itself.

It would be nice if ECS had the option to clean up all unused Docker images regardless of where they come from. Our alternatives right now are docker system prune --all on a cron, doing the same via AWS Systems Manager, or monitoring and manually cleaning up as needed.

Description

@samuelkarp [9:43 PM]
@mwarkentin, thats correct; the agent tracks what it pulls and only deletes those. The reason it does that is to avoid impacting containers that might be run on the instance outside ECS and to avoid deleting something that was intentionally pulled there to cache.

Because this could impact use cases like the above, this functionality could be optional and be enabled by a new config option.

Initial functionality from #118.

@adnxn
Copy link
Contributor

adnxn commented Jan 7, 2019

closing issue, merged to dev with #1752

@adnxn adnxn closed this as completed Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants