Docker Manager Pack

Trustedv1.0.0MITVerified88

by 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.

langchaincrewaigeneric

Quick Start

bash
agentnode install docker-manager-pack

Usage

From package
python
from 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_HOST

Docker daemon socket URL (defaults to unix:///var/run/docker.sock)

Verification

high confidence88/100✔ Verified
smokeReturned valid result
+25/25
testsAuto-generated tests only
+8/15
importAll tools imported successfully
+15/15
installInstalled in 1.8s
+15/15
contractAll contract checks passed
+10/10
warningsNo warnings
0/0
determinismOutput consistency check
+5/5
reliability3/3 runs passed
+10/10

Package installs and imports correctly. runtime checks passed.

install1.8s
import623ms
smoke302ms
tests1.2s

This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.

Python 3.12.3ffmpegpopplertesseractuv

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

CapabilityDescription
docker_manageFull Docker lifecycle: containers, images, volumes, networks

Operations: list_containers, run, stop, remove, inspect, logs, build_image, pull_image, prune, list_volumes

Requirements

VariableRequiredDescription
DOCKER_HOSTNoDocker daemon socket (defaults to unix:///var/run/docker.sock)

License

MIT

Version History

Capabilities

docker_managementdocker_managetool

Permissions

This package declares the following access levels. Review before installing.

Networkrestricted
Filesystemnone
Code Executionlimited_subprocess
Data Accessinput_only
User Approvalalways
bash
agentnode install docker-manager-pack

Environment Variables

DOCKER_HOST

Files (3)

License

MIT

Stats

Downloads0
Installs0
Versionv1.0.0
Published3/16/2026
Channelstable
Typetoolpack
Entrypointdocker_manager_pack.tool

Compatibility

Frameworks

langchaincrewaigeneric

Runtime

python

Python Version

>=3.10

Trust & Security

PublisherTrusted
SignatureNone
ProvenanceNone
Security Issues0

Publisher

A

AgentNode

@agentnode