Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker image statistics from hub.docker.com

I have a docker image on hub.docker.com. Is there a way to find out who is using my docker image or who is pulling it? Any statistics that hub.docker.com can provide.

like image 527
Katlock Avatar asked Jan 01 '23 15:01

Katlock


1 Answers

You can get the total pull count and star count from the API:

https://hub.docker.com/v2/repositories/$1/$2

For example:

curl -s https://hub.docker.com/v2/repositories/library/ubuntu/ | jq -r ".pull_count"

like image 140
grg Avatar answered Jan 05 '23 17:01

grg