productivity
Docker Hub CLI for Headless Automation
Use the Docker Hub CLI for headless automation with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 6 read 1 write Bearer token auth
Docker Hub CLI for Headless Automation
Use KosmoKrator as a non-interactive integration runtime for local automations and wrappers.
Use headless automation when another tool needs a stable local command surface. 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 Headless Automation
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.