dokku/dokku-mongo

Scheduled backup leaves hanging containers: dokkupaas/s3backup

jcutrono opened this issue · 2 comments

I have been using scheduled backups for a few weeks now. It seems that every so often, a container is left in an exited state. I am backing up every 2 hours and you can see that each run leaves an exited container. Any chance on each run to just kill all exited containers with this naming image name: dokkupaas/s3backup? [docker rmi $(docker images |grep 'dokkupaas/s3backup:0.8.0')]

capture

Looks like we might be missing --rm on the following docker run call:

docker run $BACKUP_PARAMETERS dokkupaas/s3backup:0.8.0

Can you try adding it to yours and seeing if it works? If so, I can update our code and make a new release (you'd have to revert the change locally for the plugin:update to work).

Closed by 0619249

I derped the commit message 🤦‍♂️