matic-insurance.ansible_docker_cleanup

Role Name

Build Status

Remove docker images created before given timestamp.

Requirements

This role tested on Ubuntu 14/16 but should be compatible with others.

Role Variables

You need to provide:

  • app_docker_cleanup_enabled: cleanup is disabled by default
  • images_keep_time: filter can be Unix timestamps, date formatted timestamps, or Go duration strings (e.g. 10,, 1h30m, 2018-01-02,2018-01-02T15:04:05)

Dependencies

  • Docker version 1.13+

Example Playbook

- role: matic-insurance.ansible_docker_cleanup
  app_docker_cleanup_enabled: true
  images_keep_time: '24h'
  tags: ['docker']

License

MIT

Author Information

Matic is a communication platform that connects lenders and borrowers originating a new home loan. A borrower now knows where they are in the loan process and what they need to do to complete the loan.

About

Role removing unused docker images

Install
ansible-galaxy install matic-insurance.ansible_docker_cleanup
GitHub repository
License
mit
Downloads
94