Skip to content
Back to skills

Docker

ASecurity

Query docker.ecosyste.ms for Docker Hub image metadata and the system/language packages installed inside images (via Syft SBOMs). Use when checking what's inside a Docker image, finding which images ship a given OS or language package, or browsing Linux distro variants.

  • 3 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 24, 2026
ai-agentsgobashdockergitapi

Works with

  • api

Security analysis

A100/100

Scanned October 24, 2026

npx -y skills add ecosyste-ms/claude-plugin --skill docker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docker?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ecosyste-ms-docker/badge)](https://www.skillsdirectory.com/skills/ecosyste-ms-docker)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docker
description: Query docker.ecosyste.ms for Docker Hub image metadata and the system/language packages installed inside images (via Syft SBOMs). Use when checking what's inside a Docker image, finding which images ship a given OS or language package, or browsing Linux distro variants.
allowed-tools: Bash(curl *)
---

# ecosyste.ms Docker API

Base URL: `https://docker.ecosyste.ms/api/v1`

All responses are JSON. No auth required. Set a `User-Agent` header.

Full OpenAPI spec: https://docker.ecosyste.ms/docs/api/v1/openapi.yaml

## Docker images

Image names containing `/` must be URL-encoded (`%2F`). Official images live under the `library/` namespace.

```bash
curl -s 'https://docker.ecosyste.ms/api/v1/packages/library%2Fnginx'
curl -s 'https://docker.ecosyste.ms/api/v1/packages/grafana%2Fgrafana'
```

Returns: `name`, `description`, `downloads`, `versions_count`, `latest_release_number`, `latest_release_published_at`, `dependencies_count`, `has_sbom`, `repository_url`.

## Image versions (tags) and their contents

```bash
curl -s 'https://docker.ecosyste.ms/api/v1/packages/library%2Fnginx/versions'
curl -s 'https://docker.ecosyste.ms/api/v1/packages/library%2Fnginx/versions/1.27.0'
```

The version response includes a `dependencies` array listing every OS and language package found in the image SBOM (ecosystem, name, version).

## Reverse lookup: which images contain a package

Ecosystem names here come from Syft: `deb`, `rpm`, `apk`, `npm`, `pypi`, `gem`, `golang`, `maven`, `cargo`, `nuget`, `composer`, `binary`. Package names with `/` must be URL-encoded.

```bash
# how many images ship this package, total downloads of those images
curl -s 'https://docker.ecosyste.ms/api/v1/usage/npm/lodash'
curl -s 'https://docker.ecosyste.ms/api/v1/usage/deb/openssl'
curl -s 'https://docker.ecosyste.ms/api/v1/usage/golang/github.com%2Fstretchr%2Ftestify'

# list all ecosystems with counts
curl -s 'https://docker.ecosyste.ms/api/v1/usage'

# packages in an ecosystem ranked by image count
curl -s 'https://docker.ecosyste.ms/api/v1/usage/apk?per_page=20'
```

## Linux distros

Distros and versions detected from `/etc/os-release` across indexed images:

```bash
curl -s 'https://docker.ecosyste.ms/api/v1/distros'
curl -s 'https://docker.ecosyste.ms/api/v1/distros/alpine-3-19'
curl -s 'https://docker.ecosyste.ms/api/v1/distros/alpine-3-19/versions'
```

## Pagination

List endpoints accept `?page=N&per_page=N`.

## When to use

- Inspecting what packages are bundled inside a Docker image without pulling it
- Finding which popular images include a vulnerable system library
- Estimating the Docker-side blast radius of a package
- Comparing base image distro choices

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.