- Home
- Skills
- DevOps & Cloud
- Docker Hub Registry API
Docker Hub Registry API
Precise Docker Hub API reference for repository searches, metadata, and tag management.
$9
Docker Hub Registry API
Example session with this skill installed
I need to check the available tags for the official Nginx repository on Docker Hub and see how long I should cache the results.
- Read your context and instructions
- Compiled the docker hub registry
I have retrieved the endpoint details for the Nginx repository tags along with the recommended caching strategy.
Docker Hub Tag Retrieval
| Requirement | Value |
|---|---|
| Endpoint | GET /v1/repositories/library/nginx/tags |
| Base URL | https://hub.docker.com/v2/ |
| Required Params | namespace (library), repo (nginx) |
| Optional Params | page_size |
| Cache TTL | 60 minutes |
| Method | curl "https://hub.docker.com/v2/repositories/library/nginx/tags" |
Implementation Details
When querying this endpoint, ensure your agent handles empty arrays explicitly to avoid unnecessary retries. Because this is a public-use API, implement a back-off strategy for 429 status codes. The data returned will be in the native Docker Hub JSON format, which includes tag names, sizes, and last updated timestamps.
Next steps
- Execute the curl command to fetch the current JSON payload for Nginx tags.
- Store the response in your local cache with a 60-minute expiration.
- Parse the
namefield from the results to identify the latest versioning scheme.
Connects securely to your tools. The creator never sees your data.
About this skill
Manually testing Docker Hub API endpoints often leads to wasted cycles on incorrect path structures or missing query parameters. This skill provides the precise endpoint references and query patterns required to integrate Docker Hub registry data into your tools and workflows.
What it does
- Search repositories using filtered queries to find specific container images.
- Extract metadata for specific repositories including namespace and repository details.
- List image tags to identify available versions and deployment targets.
- Optimize queries by following specific patterns for narrow filtering and pagination.
- Implement caching based on provided TTL hints for search results and repository data.
How it works
- Identify the resource needed, such as a general search, a specific repository, or a list of version tags.
- Select the endpoint from the reference, ensuring the correct namespace and repository path parameters are used.
- Apply query parameters like
page_sizeorqueryto refine the data returned from the registry. - Handle responses by distinguishing between empty arrays and actual errors to maintain stable agent behavior.
Frameworks & tools
This skill works with curl, standard HTTP clients, and any language capable of making REST calls. It targets the Docker Hub V2 API.
Why this beats prompting it yourself
Generic LLMs often hallucinate Docker Hub API paths or confuse V1 and V2 structures. This skill provides hardcoded endpoint accuracy and specific caching strategies that prevent rate-limiting issues.
Use cases
- Automate the discovery of the latest stable tags for CI/CD pipelines.
- Build internal dashboards that track repository metadata and image updates.
- Verify the existence of specific container images before running deployment scripts.
- Audit public repositories for specific namespaces to monitor base image sprawl.
Known limitations
Coverage is restricted to what the upstream public Docker Hub API exposes. Some responses require normalization as they utilize the API's native format.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
Permissions
What's inside
Frequently Asked Questions
New in DevOps & Cloud
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.