Watchtower - Clean up

  • Hi,


    I cant remember if i have asked this question or not, by the looks of it i haven't

    So i am using Watchtower to update my portainer images, is there a way to set it up so that once a month it clears out the old images?

  • Would you be able to help with this?

    The interval is in seconds. Since there's 3600 seconds in an hour, so in the above example watchtower will run every 6hrs, downloading new images and purging old ones. Just keep in mind if the container restarts for any reason, the interval restarts.


    My watchtower log from the last few days. You can see when it checks for new images at the said interval, if it downloads a new image, it deletes the old one at that time.

    Air Conditioners are a lot like PC's... They work great until you open Windows.


    Edited once, last by KM0201 ().

  • The interval is in seconds. Since there's 3600 seconds in an hour, so in the above example watchtower will run every 6hrs, downloading new images and purging old ones. Just keep in mind if the container restarts for any reason, the interval restarts.


    My watchtower log from the last few days. You can see when it checks for new images at the said interval, if it downloads a new image, it deletes the old one at that time.

    Hi,


    Thank you, im assuming i just delete my current Watchtower and run this through Stacks?

  • Does this look correct to you? i have choosen every Friday at 12pm to run "docker image prune -a -f" (Had to change from once a month to once a week due to stroage)

    Is watchtower_cleanup not working?

    Air Conditioners are a lot like PC's... They work great until you open Windows.


  • STUKguy

    Added the Label resolved

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!