Public | Automated Build

Last pushed: a year ago
Short Description
Tool for cleanup unused docker images on AWS ECS container instances
Full Description

aws-ecs-image-cleanup-tool

It is a very simple tool for cleanup unused docker images on AWS ECS container instances.
Amazon ECS Container Agent removes unused docker containers by itself.

How to use it

Of course container have to have access to docker engine:

docker run -d -v /var/run/docker.sock:/var/run/docker.sock mkct/aws-ecs-image-cleanup-tool:[docker version]

Example:

docker run -d -v /var/run/docker.sock:/var/run/docker.sock mkct/aws-ecs-image-cleanup-tool:1.9.1

How it works

This tool periodically (12 hours) removes all images which is unused by existing(running and stoopped) containers.
All work is made by cleanup.sh script. I have added comments to it.

If jou dont want to run another docker image on your instance, you can made cronjob for this script.

Docker Pull Command
Owner
mkct