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