2 thoughts to “Check for Docker Image Updates”

  1. Thanks for this! It’s exactly what I needed to bring some more automation to my Docker setup at home. I wanted to share one small addition I made to support tags:

    “`
    TAG=latest

    if [[ $IMAGE == *”:”* ]]; then
    TAG=”${IMAGE##*:}”
    IMAGE=”${IMAGE%:*}”
    fi
    “`

    And then replace “latest” with “$TAG” in the rest of the script. Now you can pass in something like ‘jacobalberty/unifi:stable’ and it pulls the right tag. 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *