Skip to content

Instantly share code, notes, and snippets.

@LvargaDS
LvargaDS / get-docker-image-tag-by-sha.sh
Last active October 24, 2024 08:06 — forked from achetronic/get-docker-image-tag-by-sha.sh
Find the tag of a Docker image having only the SHA256
#!/bin/bash
SHA256_HASH="1bcc4a809b5dae81ccdd292bc7724ef2a1357f58a545fbdfd3076008af14d0d7"
for i in {1..1000}
do
URL="https://registry.hub.docker.com/v2/repositories/apache/superset/tags/?page=$i&page_size=100"
echo "Looking into page: $i $URL"
curl --silent --show-error "$URL" \