Join our Discord Server
Ajeet Raina Ajeet Singh Raina is a former Docker Captain, Community Leader and Distinguished Arm Ambassador. He is a founder of Collabnix blogging site and has authored more than 700+ blogs on Docker, Kubernetes and Cloud-Native Technology. He runs a community Slack of 9800+ members and discord server close to 2600+ members. You can follow him on Twitter(@ajeetsraina).

Pick of the Week: The “mplatform/mquery” Docker Hub Image

1 min read

Here’s a question for you ~ How would you know if the Docker image that you are planning to download support your platform? One obvious way is to visit Docker Hub and check out its “Tags” section. It’s a manual task. Right? There must be better way to tackle this.

Introducing the mplatform/mquery Docker image…

The mquery is a simple utility and serverless-based backend for querying Docker v2 & OCI v1 container images and reporting on “manifest list”/OCI “index” multi-platform image support. The tool allows you to query any public image in any public container repository. This image is created and pushed by a GitHub Action when any release occurs in the public GitHub repository estesp/mquery.

This project uses AWS Lambda as a backend, in concert with the manifest-tool inspect API capability to easily report on the status of whether an image is a manifest list/OCI index entry in a registry, and if so, what platforms are supported by the image. The backend which performs registry queries is implemented as a web API-triggered Lambda function (code located in the function directory of the repository). It is possibly under heavy load that any particular instantiation of the Lambda function will get its IP rate limited as the queries are performed without authentication. This limitation only potentially affects DockerHub; other public registries may not have any rate limiting of queries at this time.

When run against itself, you can see the report of supported OS/architecture pairs. Here’s an example of a Docker Extensions image docker/disk-usage-extension:

 

docker run --rm mplatform/mquery docker/disk-usage-extension:0.2.5
Image: docker/disk-usage-extension:0.2.5 (digest: sha256:02397941ad317744d0fded959f2a21f69d1f1cd4d7d9f2c9ba1be7e4a88f8375)
 * Manifest List: Yes (Image type: application/vnd.docker.distribution.manifest.list.v2+json)
 * Supported platforms:
   - linux/amd64
   - linux/arm64

 

Here’s a glimpse of Docker Disk Usage Extensions up and running on Docker Desktop:

 

References:

Have Queries? Join https://launchpass.com/collabnix

Ajeet Raina Ajeet Singh Raina is a former Docker Captain, Community Leader and Distinguished Arm Ambassador. He is a founder of Collabnix blogging site and has authored more than 700+ blogs on Docker, Kubernetes and Cloud-Native Technology. He runs a community Slack of 9800+ members and discord server close to 2600+ members. You can follow him on Twitter(@ajeetsraina).
Join our Discord Server
Index