orbstack_docker_images
List all local Docker images in a formatted table to manage container resources on macOS through OrbStack.
Instructions
列出本地所有 Docker 镜像。
Returns: str: 镜像列表(格式化表格)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/orbstack_mcp/server.py:845-855 (handler)The handler function `orbstack_docker_images` that executes `docker images` and returns the formatted output.
async def orbstack_docker_images() -> str: """列出本地所有 Docker 镜像。 Returns: str: 镜像列表(格式化表格) """ args = ["images", "--format", "table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}\t{{.CreatedSince}}"] code, stdout, stderr = await _run_docker(args) if code != 0: return _format_error(stderr) if not stdout: - src/orbstack_mcp/server.py:835-844 (registration)Registration of the `orbstack_docker_images` tool using the @mcp.tool decorator.
@mcp.tool( name="orbstack_docker_images", annotations={ "title": "列出 Docker 镜像", "readOnlyHint": True, "destructiveHint": False, "idempotentHint": True, "openWorldHint": False, }, )