Blame SOURCES/docker-cleanup.service

d03ac3
[Unit]
d03ac3
Description=Docker Cleanup
d03ac3
Requires=docker.service
d03ac3
d03ac3
d03ac3
[Service]
d03ac3
Type=oneshot
d03ac3
ExecStart=/usr/bin/sh -c "DEAD=`docker ps -aq -f status=dead` && [ -n \"$DEAD\" ] && docker rm $DEAD; exit 0"
d03ac3
d03ac3
[Install]
d03ac3
WantedBy=multi-user.target