Last active
January 12, 2018 16:41
-
-
Save tobilg/0284d041b9e9eb439cd5dfdd3c7a03ca to your computer and use it in GitHub Desktop.
Get the Docker Hub statistics for a specific user's images as CSV. Needs curl and jq installed. Usage: ./docker_hub_stats.sh yourUserName
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
curl -s https://hub.docker.com/v2/repositories/$1/\?page_size\=1000 | jq -r '["user", "name", "description", "star_count", "pull_count"] as $fields | $fields, (.results[] | [.[$fields[]]]) | @csv' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This will produce the following output for the
google
user: