hughesjr / rpms / docker

Forked from rpms/docker 4 years ago
Clone

Blame SOURCES/docker-cleanup.service

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