system_login
Authenticate with a Docker registry to access private repositories for image pull and push operations.
Instructions
Authenticate with a Docker registry.
Security: the password is sent as a tool argument, which many MCP clients log verbatim. Prefer
running docker login once on the host so the docker module reuses the credentials cached in
~/.docker/config.json, and avoid calling this tool from an agent loop. Credentials let
image_pull / image_push reach private repositories; system_logout clears them.
args: username - Registry username password - Registry password or token email - Registry account email registry - URL to the registry (defaults to Docker Hub) reauth - Force re-authentication even if valid credentials exist dockercfg_path - Path to a custom dockercfg file returns: dict - The login response: {"Status"} always; "IdentityToken" only when the registry issues one
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| reauth | No | ||
| password | Yes | ||
| registry | No | ||
| username | Yes | ||
| dockercfg_path | No |