context_use
Set the default Docker context for CLI commands on the host. Specify an existing context name to switch the active context.
Instructions
Set the active Docker context for the CLI on the host running this MCP server.
Note: this does not retarget the long-lived docker-py client — SDK-backed tools keep using the
endpoint they connected to at startup. To retarget those, restart the server with a different
DOCKER_HOST / DOCKER_CONTEXT. Create contexts with context_create; list them with
context_list.
args: name - Existing context name to set as default returns: dict - {"returncode": int, "stdout": str, "stderr": str, "truncated": bool}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes |