productivity
Docker Hub CLI for Coding Agents
Use the Docker Hub CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 6 read 1 write Bearer token auth
Docker Hub CLI for Coding Agents
Let coding agents discover schemas and execute integration functions through CLI commands or MCP.
Use this pattern when another coding agent needs exact commands and schema discovery. The Docker Hub CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Docker Hub CLI for Coding Agents
kosmokrator integrations:configure docker --set access_token="$DOCKER_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call docker.docker_list_repositories '{"namespace":"example_namespace","page_size":1,"page":1}' --json Discovery Before Execution
Agents and scripts can inspect Docker Hub docs and schemas before choosing a function.
kosmo integrations:docs docker --json
kosmo integrations:docs docker.docker_list_repositories --json
kosmo integrations:schema docker.docker_list_repositories --json
kosmo integrations:search "Docker Hub" --json
kosmo integrations:list --json Useful Docker Hub CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
docker.docker_list_repositories | Read | namespace, page_size, page | List Docker Hub repositories. Optionally filter by namespace. Supports pagination with page_size and page parameters. |
docker.docker_get_repository | Read | namespace, name | Get details for a specific Docker Hub repository by namespace and name. |
docker.docker_list_tags | Read | namespace, name, page_size, page | List tags for a Docker Hub repository. Supports pagination with page_size and page parameters. |
docker.docker_get_tag | Read | namespace, name, tag | Get details for a specific tag in a Docker Hub repository. |
docker.docker_create_repository | Write | namespace, name, description, full_description, is_private | Create a new Docker Hub repository under a namespace. |
docker.docker_list_organizations | Read | page_size, page | List Docker Hub organizations the authenticated user belongs to. Supports pagination with page_size and page parameters. |
docker.docker_get_current_user | Read | none | Get the profile of the currently authenticated Docker Hub user. Useful for verifying credentials and displaying account information. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.