Do you routinely do 'docker system prune' or anything else to maintain your Discourse instances?

Is there a way to have the cleanup process triggered after upgrades from the admin interface?