infra_ops
Manage Docker images, networks, and volumes by listing, pulling, building, creating, pruning, and removing resources through one operation-based tool.
Instructions
Docker Images, Networks, and Volumes operations.
Operations: list_images, get_image, pull_image, build_image, remove_image, prune_images, list_networks, get_network, create_network, remove_network, prune_networks, list_volumes, get_volume, create_volume, remove_volume, prune_volumes.
Args: See Parameters block.
Return Format
{"success": bool, "action": str, "message": str, "result": {...}}
list_images: {"images": [{"id", "name", "tag", "size", ...}]}
pull_image: {"status": str, "image": str}
list_volumes: {"volumes": [{"name", "driver", ...}]}
Examples
infra_ops(operation="list_images", all_images=True) infra_ops(operation="pull_image", image="nginx", tag="alpine") infra_ops(operation="create_network", name="app-net", driver="bridge")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rm | No | ||
| tag | No | latest | |
| ipam | No | ||
| name | No | ||
| path | No | ||
| pull | No | ||
| force | No | ||
| image | No | ||
| driver | No | ||
| labels | No | ||
| squash | No | ||
| filters | No | ||
| forcerm | No | ||
| ingress | No | ||
| nocache | No | ||
| noprune | No | ||
| options | No | ||
| internal | No | ||
| platform | No | ||
| buildargs | No | ||
| operation | No | ||
| all_images | No | ||
| attachable | No | ||
| dockerfile | No | Dockerfile | |
| network_id | No | ||
| driver_opts | No | ||
| enable_ipv6 | No | ||
| volume_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||