# cat cleanup.1.timer
[Unit]
Description=Cleanup Timer

[Timer]
OnCalendar=06:00
Unit=cleanup.1.service

[Install]
WantedBy=timers.target

[X-Fleet]
MachineID=b39596623f6540568ea3ea25a4fa8752
# cat cleanup.1.service
[Unit]
Description=Cleanup Service

[Service]
TimeoutStartSec=0
ExecStart=/bin/bash -c "docker rmi $(docker images|grep \"^<none>"|awk \"{print \$3}\""

[X-Fleet]
MachineID=b39596623f6540568ea3ea25a4fa8752

Pour le déploiement avec fleet :

# fleetctl submit cleanup.1.service
# fleetctl load cleanup.1.service
# fleetctl submit cleanup.1.timer
# fleetctl load cleanup.1.timer
# fleetctl start cleanup.1.timer