Docker Hub
In this section, we present how to connect Docker Hub repository to MindsDB.
Docker Hub is the world’s easiest way to create, manage, and deliver your team’s container applications.
Data from Docker Hub can be utilized within MindsDB to train models and make predictions about Docker Hub repositories.
Prerequisites
Before proceeding, ensure the following prerequisites are met:
- Install MindsDB locally via Docker or use MindsDB Cloud.
- To connect Docker Hub to MindsDB, install the required dependencies following this instruction.
- Install or ensure access to Docker Hub.
Connection
This handler is implemented using the requests
library that makes http calls to https://docs.docker.com/docker-hub/api/latest/#tag/resources.
The required arguments to establish a connection are as follows:
username
: Username used to login to DockerHub.password
: Password used to login to DockerHub.
Read about creating an account here.
Here is how to connect to Docker Hub using MindsDB:
Usage
Now, you can query Docker Hub as follows:
Both the namespace
and repository
parameters are required in the WHERE clause.