<%
name = 'dockerd'

conf = node['docker-grid']['engine']['autopilot']
log = "#{conf['log_dir']}/#{name}-local.log"
-%>
PATH=/usr/bin:/bin:/usr/local/bin
LOG=<%= log %>

<%= conf['containers_prune_period'] %> root docker_containers_cleanup >> $LOG 2>&1
<%= conf['images_prune_period'] %> root docker_images_cleanup >> $LOG 2>&1
<%= conf['volumes_prune_period'] %> root docker_volumes_cleanup >> $LOG 2>&1
