Simple bash tool for removing docker service jobs.
docker service create \
--mode replicated-job \
--replicas 1 \
debian:11-slim ls # Example
Execute the following command as root
make install
docker-service-job-clean
Example of cronjob that clean all finished jobs every day at 10 AM:
0 10 * * * root docker-service-job-clean