context_use
Set the active Docker context for the CLI on the host, making it the default target for Docker commands.
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 |