Closed nuclearsandwich closed 3 years ago
This script is less smart than the old docker cleanup script but is also a four line shell script. It will run on the hour and only clear docker images when necessary. As a tradeoff for simplicity it will clear everything that is not in active use.
You might consider dropping some of the three consecutive empty lines being added to agent.rb, but LGTM other than that.
agent.rb
Done in an amended commit.
This script is less smart than the old docker cleanup script but is also a four line shell script. It will run on the hour and only clear docker images when necessary. As a tradeoff for simplicity it will clear everything that is not in active use.