Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Clean Docker and awslogs files cron
10 3 * * * root /usr/bin/docker rm $(docker ps -aq)
20 3 * * * root /usr/bin/docker rmi -f $(docker images -qa)
1 1 * * * cat /dev/null > /var/log/awslogs.log >/dev/null 2>&1
1 1 * * * cat /dev/null > /var/log/awslogs.log.1 >/dev/null 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.