Docker Manager Pack
★Trustedv1.0.0MIT✔Verified88by AgentNode · published 22 days ago · toolpack
Manage Docker containers, images, and volumes from your agent.
Start, stop, inspect, and remove Docker containers. Build images, manage volumes, and view logs. Uses the Docker Engine API.
Quick Start
agentnode install docker-manager-packUsage
From packagefrom docker_manager_pack.tool import run
# List all running containers
result = run(
action="docker_manage",
operation="list_containers",
status="running"
)
for container in result["containers"]:
print(f"{container['name']:30s} {container['image']:40s} {container['status']}")
# Inspect a specific container
details = run(
action="docker_manage",
operation="inspect",
container="my-postgres-db"
)
print(f"\nIP Address: {details['network']['ip_address']}")
print(f"Memory Usage: {details['stats']['memory_usage_mb']:.1f} MB")
print(f"CPU: {details['stats']['cpu_percent']:.2f}%")Environment Variables
DOCKER_HOSTDocker daemon socket URL (defaults to unix:///var/run/docker.sock)
Verification
Package installs and imports correctly. runtime checks passed.
This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.
Last verified 18d ago· Runner v2.0.0
Use this when you need to...
- ›Start and stop Docker containers for CI/CD test environments
- ›Inspect running container resource usage and health status
- ›Pull and build Docker images from private registries
- ›Stream container logs for real-time debugging
- ›Clean up dangling images and unused volumes to reclaim disk space
README
Docker Manager Pack
Manage Docker containers, images, and volumes from your agent. Start, stop, inspect, and remove containers. Build images, manage volumes, and view logs.
Quick Start
agentnode install docker-manager-pack
from docker_manager_pack.tool import run
result = run(
action="docker_manage",
operation="list_containers",
status="running"
)
for c in result["containers"]:
print(f"{c['name']} — {c['status']}")
Usage
View Container Logs
result = run(
action="docker_manage",
operation="logs",
container="my-web-server",
tail=50
)
print(result["logs"])
Stop and Remove a Container
run(action="docker_manage", operation="stop", container="old-service")
run(action="docker_manage", operation="remove", container="old-service")
Prune Unused Resources
result = run(
action="docker_manage",
operation="prune",
targets=["images", "volumes", "networks"]
)
print(f"Reclaimed: {result['space_reclaimed_mb']:.0f} MB")
API Reference
| Capability | Description |
|---|---|
docker_manage | Full Docker lifecycle: containers, images, volumes, networks |
Operations: list_containers, run, stop, remove, inspect, logs, build_image, pull_image, prune, list_volumes
Requirements
| Variable | Required | Description |
|---|---|---|
DOCKER_HOST | No | Docker daemon socket (defaults to unix:///var/run/docker.sock) |
License
MIT
Version History
Capabilities
Permissions
This package declares the following access levels. Review before installing.
agentnode install docker-manager-packEnvironment Variables
DOCKER_HOSTFiles (3)
License
MITStats
Compatibility
Frameworks
Runtime
pythonPython Version
>=3.10Trust & Security
Publisher
AgentNode
@agentnode