system_logout
Clear cached registry credentials from this server's in-memory Docker client. Specify a registry to remove only its entry, or omit to clear all cached logins.
Instructions
Clear cached registry credentials from this server's in-memory Docker client.
docker-py / the Engine have no true logout: system_login validates against the registry (the daemon's
/auth is stateless) and caches credentials in-process. This drops that in-memory cache; it does
NOT contact the daemon or touch the host's ~/.docker/config.json. With no registry, clears
every cached credential; pass one to clear just that entry (key must match system_login; Docker Hub
is cached under "docker.io"). system_close/system_reconnect also clear it by discarding the client.
Reaches into a private docker-py attribute (api._auth_configs); degrades to clearing nothing if
that internal shape changes.
Args: registry: Registry key to clear, or None to clear every cached credential
Returns: dict: {"cleared": []}
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "system_logout"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| registry | No |