Skip to content
Latchkey

How to Add a Docker Pulls Badge

The shields.io docker/pulls route reads Docker Hub pull counts for a public image with no authentication.

Use docker/pulls/<owner>/<image> to render the total pull count for a Docker Hub repository. Pair it with an image size badge from the same family if you like.

Steps

  • Pulls: img.shields.io/docker/pulls/<owner>/<image>.
  • Image size: img.shields.io/docker/image-size/<owner>/<image>.
  • Link the badge to the Docker Hub page.

README markdown

README.md
[![Docker Pulls](https://img.shields.io/docker/pulls/acme/widget)](https://hub.docker.com/r/acme/widget)

Push step that grows the pulls source

.github/workflows/release.yml
      - uses: docker/build-push-action@v6
        with:
          push: true
          tags: acme/widget:latest

Gotchas

  • The route only works for Docker Hub; other registries (GHCR, ECR) do not expose a public pulls count.
  • Official library images use the library owner segment, for example docker/pulls/library/nginx.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →