Connection
This handler is implemented using therequests
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.
If you installed MindsDB locally via pip, you need to install all handler dependencies manually. To do so, go to the handler’s folder (mindsdb/integrations/handlers/dockerhub_handler) and run this command:
pip install -r requirements.txt
.Usage
Now, you can query Docker Hub as follows:Both the
namespace
and repository
parameters are required in the WHERE clause.