Skip to content

Instantly share code, notes, and snippets.

@ludenus
ludenus / dockerhub-v2-api-organization.sh
Last active December 6, 2023 09:26 — forked from kizbitz/dockerhub-v2-api-organization.sh
Get the list of images and tags for a Docker Hub organization account (UPD: traverse all pages)
#!/bin/bash
# Example for the Docker Hub V2 API
# Returns all images and tags associated with a Docker Hub organization account.
# Requires 'jq': https://stedolan.github.io/jq/
export PATH=/tmp/bin:$PATH
if [ ! `which jq` ]; then
mkdir -p /tmp/bin
curl -s -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 --output /tmp/bin/jq