system_login
Authenticate with a Docker registry by providing username and password, enabling secure access to pull or push images.
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.
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 server response from the login request
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | |||
| reauth | No | ||
| password | Yes | ||
| registry | No | ||
| username | Yes | ||
| dockercfg_path | No |