Setup a cron job to cleanup docker containers

This commit is contained in:
Jake Howard 2020-01-30 13:27:10 +00:00
parent 11e49eb76e
commit 78d860bfcb
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -29,3 +29,9 @@
uid: "{{ docker_user.id }}" uid: "{{ docker_user.id }}"
group: "{{ docker_user.name }}" group: "{{ docker_user.name }}"
create_home: false create_home: false
- name: Clean up docker containers
cron:
name: clean up docker containers
special_time: weekly
job: "docker system prune"