Track weekly Docker Hub pull and star counts in Sheets
Every Monday morning this automation records your Docker Hub pull and star counts into a Google Sheet, so you can watch each image grow week over week.
Integrations
Docker Hub
Google Sheets
Type
Categories
- Engineering
- Operations
Every Monday at 7am, log a snapshot of my Docker Hub image statistics into a Google Sheet so I can track how each image grows over time. This is a deterministic logging job with no summarization: each weekly run simply appends a fresh set of rows that build a historical trend I can chart later.
First, use Docker Hub's List Repositories in a Namespace operation to fetch every repository in my namespace (my Docker ID for personal repositories, or my organization name for org-owned ones). Page through all results so no repository is missed.
For each repository returned, call Docker Hub's Get Repository operation to read its current pull_count and star_count.
Then, for each repository, append one row to my tracking Google Sheet using Google Sheets' Append Values operation. Each row should have four columns in this order: the date of this run as an ISO 8601 date, the repository name, the pull count, and the star count. Append one row per repository per run so the sheet stacks a new block of rows each week.
Only append; never overwrite or summarize existing rows. Keep the same four-column order every week so the growing history stays consistent and easy to chart. If the sheet already has a header row for date, repository, pull count, and star count, keep appending beneath it.
What it does
- Runs automatically every Monday morning with no manual work.
- Collects the current pull count and star count for every one of your Docker Hub images.
- Adds a fresh, date-stamped row for each image to your Google Sheet.
- Builds a week-by-week history you can turn into growth charts later.
What you’ll need
- A Docker Hub account with the images you want to track.
- A Google account and a Google Sheet to store the running history.
- A simple column layout in that sheet for date, image, pull count, and star count.
How to customize it
- Change the schedule if weekly is not the cadence you want, for example daily or the first of every month.
- Point it at a different Google Sheet or tab whenever you like.
- Track a whole organization's images instead of just your personal account by choosing a different namespace.
Use cases
- Data Sync
- Research & Monitoring