buildx_use
Switch the active buildx builder for subsequent Docker operations. Optionally persist the choice as default for the current Docker context or globally.
Instructions
Select the active builder for subsequent buildx operations.
Without default or global_default the switch applies only to the current CLI
session. default persists the choice for the current Docker context; global_default
persists across all Docker contexts. Use buildx_list to see available builders and their
current status. To avoid switching the global default, pass a specific builder name
directly via buildx_build's builder parameter instead.
args:
name - Builder name to activate (from buildx_list)
default - Persist as default builder for the current Docker context
global_default - Persist as default builder across all Docker contexts
returns: dict - {"returncode": int, "stdout": str, "stderr": str, "truncated": bool}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| default | No | ||
| global_default | No |