context_remove
Remove a Docker CLI context to clean up connection metadata without affecting the daemon. Force remove if it's the current context.
Instructions
Remove a Docker CLI context.
Deletes only the CLI's connection metadata — the daemon it pointed at is untouched. The
current context needs force=True (or context_use another first).
Does not raise on a non-zero CLI exit — inspect returncode/stderr in the result.
args: name - Context name to remove force - Force removal even if the context is the current one returns: dict - {"returncode": int, "stdout": str, "stderr": str, "truncated": bool}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| force | No |