I'm pulling with: docker pull <someimage>:<sometag>
.
How can I validate that the remote tag has changed? So I can:
if [ CHECK_IF_REMOTE_TAG_IMAGE_HAS_CHANGED ]; then
docker rm <someimage>:<sometag>
docker pull <someimage>:<sometag>
fi
This comes in handy when using containers where the tag = :latest
.