compose_images
List images used by a Docker Compose project's services, showing repository, tag, and image ID for each running container.
Instructions
List the images used by a compose project's services, parsed from --format json.
Answers "what image and tag does each service container actually run?" — the containers must
exist (compose_up/compose_create first). Use compose_ps for container state and
image_list for daemon-wide images. Raises RuntimeError if the CLI call fails.
args:
project_dir - Dir with the compose file (default: server cwd)
files - Explicit compose file paths (repeatable, -f)
project_name - Compose project name override
services - Restrict to these services (default: all)
returns: list - One dict per container image (service, container, repository, tag, id, size)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | ||
| services | No | ||
| project_dir | No | ||
| project_name | No |