docker / hub-feedback

Feedback and bug reports for the Docker Hub
https://hub.docker.com
233 stars 48 forks source link

bug: docker image search doesn't display star count for official images #2212

Closed RiRa12621 closed 2 years ago

RiRa12621 commented 2 years ago

Description the Docker CLI allows to search for images on docker hub. One part of the result is printing the star count. However, the start count is 0 if an image has a results > 10k

Steps to reproduce the issue:

  1. docker search mysql

Describe the results you received:

$ docker search mysql
NAME                             DESCRIPTION                                     STARS     OFFICIAL   AUTOMATED
mysql/mysql-server               Optimized MySQL Server Docker images. Create…   906                  [OK]
centos/mysql-57-centos7          MySQL 5.7 SQL database server                   92
mysql/mysql-cluster              Experimental MySQL Cluster Docker images. Cr…   92
bitnami/mysql                    Bitnami MySQL Docker Image                      65                   [OK]
databack/mysql-backup            Back up mysql databases to... anywhere!         55
circleci/mysql                   MySQL is a widely used, open-source relation…   25
ubuntu/mysql                     MySQL open source fast, stable, multi-thread…   24
mysql/mysql-router               MySQL Router provides transparent routing be…   23
centos/mysql-56-centos7          MySQL 5.6 SQL database server                   21
google/mysql                     MySQL server for Google Compute Engine          19                   [OK]
mysqlboy/docker-mydumper         docker-mydumper containerizes MySQL logical …   3
mysqlboy/mydumper                mydumper for mysql logcial backups              3
ibmcom/mysql-s390x               Docker image for mysql-s390x                    1
bitnami/mysqld-exporter                                                          1
mysql                            MySQL is a widely used, open-source relation…   0         [OK]
ibmcom/tidb-ppc64le              TiDB is a distributed NewSQL database compat…   0
mysql/mysql-operator             MySQL Operator for Kubernetes                   0
mirantis/mysql                                                                   0
cimg/mysql                                                                       0
mysqlboy/elasticsearch                                                           0
mysqleatmydata/mysql-eatmydata                                                   0
phpmyadmin                       phpMyAdmin - A web interface for MySQL and M…   0         [OK]
percona                          Percona Server is a fork of the MySQL relati…   0         [OK]
mariadb                          MariaDB Server is a high performing open sou…   0         [OK]
mysql/ndb-operator               MySQL NDB Operator for Kubernetes               0

Describe the results you expected: mysql should have more than 0 stars

Screenshot 2022-02-22 at 11 36 29

Additional information you deem important (e.g. issue happens only occasionally):

Output of docker version:

 docker version
Client:
 Cloud integration: v1.0.22
 Version:           20.10.12
 API version:       1.41
 Go version:        go1.16.12
 Git commit:        e91ed57
 Built:             Mon Dec 13 11:46:56 2021
 OS/Arch:           darwin/arm64
 Context:           default
 Experimental:      true

Server: Docker Desktop 4.5.0 (74594)
 Engine:
  Version:          20.10.12
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.16.12
  Git commit:       459d0df
  Built:            Mon Dec 13 11:43:07 2021
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.4.12
  GitCommit:        7b11cfaabd73bb80907dd23182b9347b4245eb5d
 runc:
  Version:          1.0.2
  GitCommit:        v1.0.2-0-g52b36a2
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Output of docker info:

$ docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc., v0.7.1)
  compose: Docker Compose (Docker Inc., v2.2.3)
  scan: Docker Scan (Docker Inc., v0.17.0)

Server:
 Containers: 1
  Running: 0
  Paused: 0
  Stopped: 1
 Images: 5
 Server Version: 20.10.12
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
 runc version: v1.0.2-0-g52b36a2
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
  cgroupns
 Kernel Version: 5.10.76-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: aarch64
 CPUs: 4
 Total Memory: 7.75GiB
 Name: docker-desktop
 ID: 7OCW:ZTUD:SQ4B:MRMG:E6FV:5QBG:ZBUR:KCIA:VSRU:TA2N:KKUS:5MPY
 Docker Root Dir: /var/lib/docker
 Debug Mode: true
  File Descriptors: 45
  Goroutines: 48
  System Time: 2022-02-22T10:37:05.366266419Z
  EventsListeners: 4
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5000
  10.0.109.202:5000
  127.0.0.0/8
 Live Restore Enabled: false
)

Additional environment details (AWS, VirtualBox, physical, etc.):

$ uname -a
Darwin MAC-FVFGH12JQ05P 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T8101 arm64
thaJeztah commented 2 years ago

Thanks for reporting; it looks like Docker Hub's search API does not return those stars; here's the request that the docker daemon makes to get those results;

curl 'https://index.docker.io/v1/search?q=mysql'.

And the results;

{
  "num_pages": 1237,
  "num_results": 30925,
  "page_size": 25,
  "page": 1,
  "query": "mysql",
  "results": [
    {
      "name": "mysql",
      "description": "MySQL is a widely used, open-source relational database management system (RDBMS).",
      "pull_count": 3282532963,
      "star_count": 0,
      "is_trusted": false,
      "is_automated": false,
      "is_official": true
    },
    {
      "name": "mariadb",
      "description": "MariaDB Server is a high performing open source relational database, forked from MySQL.",
      "pull_count": 2475131861,
      "star_count": 0,
      "is_trusted": false,
      "is_automated": false,
      "is_official": true
    },
    {
      "name": "phpmyadmin",
      "description": "phpMyAdmin - A web interface for MySQL and MariaDB.",
      "pull_count": 43383449,
      "star_count": 0,
      "is_trusted": false,
      "is_automated": false,
      "is_official": true
    },
    {
      "name": "percona",
      "description": "Percona Server is a fork of the MySQL relational database management system created by Percona.",
      "pull_count": 115064004,
      "star_count": 0,
      "is_trusted": false,
      "is_automated": false,
      "is_official": true
    },
    {
      "name": "circleci/mysql",
      "description": "MySQL is a widely used, open-source relational database management system (RDBMS).",
      "pull_count": 247853507,
      "star_count": 25,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "bitnami/mysql",
      "description": "Bitnami MySQL Docker Image",
      "pull_count": 105740297,
      "star_count": 65,
      "is_trusted": true,
      "is_automated": true,
      "is_official": false
    },
    {
      "name": "bitnami/mysqld-exporter",
      "description": "",
      "pull_count": 11007800,
      "star_count": 2,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "ubuntu/mysql",
      "description": "MySQL open source fast, stable, multi-thread SQL database. Long-term tracks maintained by Canonical.",
      "pull_count": 167066,
      "star_count": 24,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "google/mysql",
      "description": "MySQL server for Google Compute Engine",
      "pull_count": 48361,
      "star_count": 19,
      "is_trusted": true,
      "is_automated": true,
      "is_official": false
    },
    {
      "name": "cimg/mysql",
      "description": "",
      "pull_count": 1327700,
      "star_count": 0,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "ibmcom/mysql-s390x",
      "description": "Docker image for mysql-s390x",
      "pull_count": 40905,
      "star_count": 1,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "mirantis/mysql",
      "description": "",
      "pull_count": 2076,
      "star_count": 0,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "ibmcom/tidb-ppc64le",
      "description": "TiDB is a distributed NewSQL database compatible with MySQL protocol https://pingcap.com ",
      "pull_count": 6790,
      "star_count": 0,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "mysql/mysql-server",
      "description": "Optimized MySQL Server Docker images. Created, maintained and supported by the MySQL team at Oracle",
      "pull_count": 124069710,
      "star_count": 907,
      "is_trusted": true,
      "is_automated": true,
      "is_official": false
    },
    {
      "name": "mysql/mysql-cluster",
      "description": "Experimental MySQL Cluster Docker images. Created by the MySQL team at Oracle",
      "pull_count": 7662905,
      "star_count": 92,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "mysql/mysql-router",
      "description": "MySQL Router provides transparent routing between your application and back-end MySQL Servers.",
      "pull_count": 4169002,
      "star_count": 23,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "mysql/mysql-operator",
      "description": "MySQL Operator for Kubernetes",
      "pull_count": 90759,
      "star_count": 0,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "mysqlboy/docker-mydumper",
      "description": "docker-mydumper containerizes MySQL logical backup tool mydumper ",
      "pull_count": 16630,
      "star_count": 3,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "mysqlboy/mydumper",
      "description": "mydumper for mysql logcial backups",
      "pull_count": 11652,
      "star_count": 3,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "mysqlboy/elasticsearch",
      "description": "",
      "pull_count": 30319,
      "star_count": 0,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "mysqleatmydata/mysql-eatmydata",
      "description": "",
      "pull_count": 2704,
      "star_count": 0,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "centos/mysql-57-centos7",
      "description": "MySQL 5.7 SQL database server\n",
      "pull_count": 45843398,
      "star_count": 92,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "centos/mysql-56-centos7",
      "description": "MySQL 5.6 SQL database server\n",
      "pull_count": 26923406,
      "star_count": 21,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "databack/mysql-backup",
      "description": "Back up mysql databases to... anywhere!",
      "pull_count": 30007979,
      "star_count": 55,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    },
    {
      "name": "mysql/ndb-operator",
      "description": "MySQL NDB Operator for Kubernetes",
      "pull_count": 673,
      "star_count": 0,
      "is_trusted": false,
      "is_automated": false,
      "is_official": false
    }
  ]
}
thaJeztah commented 2 years ago

Let me move this ticket to the http://github.com/docker/hub-feedback/ issue tracker, as this looks to be an issue with Docker Hub, not the docker cli (or daemon)

jonnystoten commented 2 years ago

Thanks for reporting this @RiRa12621! This was a bug in the Docker Hub backend which has now been fixed.