compose_images
List images used by each service in a Docker Compose project, showing repository, tag, and container ID for every running service. Use after compose up to verify which image versions are active.
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 first). Use compose_ps for container state and
image_list for daemon-wide images.
Raises RemoteFailureError if the CLI call fails.
Args:
project_dir: Dir with the compose file (default: server cwd; copied to the target host if no local plugin)
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 |