Skip to main content
DockerTools enable an Agent to interact with Docker containers, images, volumes, and networks.

Prerequisites

The following example requires the docker and openai Python packages. You’ll also need Docker installed and running on your system.

Example

The following example creates an agent that can manage Docker resources:
cookbook/91_tools/docker_tools.py

Toolkit Params

DockerTools registers all functions below by default. Limit them with the base toolkit params:

Toolkit Functions

Container Management

Image Management

Volume Management

Network Management

Developer Resources