Update Docker Compose Containers
docker_compose_updateUpdate Docker Compose containers by stopping them, pulling updated images, and restarting. Specify the compose file path; runs detached by default.
Instructions
Update Docker Compose containers by stopping them, pulling latest images, and restarting.
This tool executes the standard update workflow:
Stop running containers (docker compose down)
Pull latest images (docker compose pull)
Start containers with new images (docker compose up -d)
Args:
compose_file (string): Absolute path to the docker-compose.yml file
detached (boolean): Run containers in detached mode (default: true)
Returns: A summary of each step's output, including:
Which containers were stopped
Which images were pulled/updated
Which containers are now running
Any errors encountered during the process
Examples:
Use when: "Update my chemdraw containers"
Use when: "Pull latest images and restart docker compose"
Error Handling:
If 'down' fails, continues to 'pull' (containers may not be running)
If 'pull' fails, does not proceed to 'up'
If 'up' fails, reports error details
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detached | No | Run containers in detached mode (default: true) | |
| compose_file | Yes | Absolute path to the docker-compose.yml file |