system_logout
Clears cached registry credentials from the Docker client's memory. Use to force re-authentication without altering the host's config file.
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": []}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| registry | No |