How do I check if my local docker image is outdated, without pushing from somewhere else?
You can query the registry API for the image digest and compare it to that of what you’ve pulled. $ cat digest-v2.sh #!/bin/sh ref=”${1:-library/ubuntu:latest}” repo=”${ref%:*}” tag=”${ref##*:}” acceptM=”application/vnd.docker.distribution.manifest.v2+json” acceptML=”application/vnd.docker.distribution.manifest.list.v2+json” token=$(curl -s “https://auth.docker.io/token?service=registry.docker.io&scope=repository:${repo}:pull” \ | jq -r ‘.token’) curl -H “Accept: ${acceptM}” \ -H “Accept: ${acceptML}” \ -H “Authorization: Bearer $token” \ -I -s “https://registry-1.docker.io/v2/${repo}/manifests/${tag}” $ ./digest-v2.sh … Read more