Elyra
Development
Development
Elyra

Docker

Docker-aware development — container exec routing, log tailing, compose operations, environment sync, and container health monitoring.

@elyracode/docker makes the agent aware of your local Docker environment so it can run commands inside containers, read logs, drive docker compose, and verify that your host .env matches what each container actually sees — without you ever leaving the terminal.

Install

elyra install npm:@elyracode/docker

Tools

Tool Description
docker_exec Run a command inside a Docker container
docker_logs Read recent logs from a container (with optional grep filtering)
docker_status List running containers with resource usage, ports, and health
docker_compose Run docker compose operations (up, down, restart, build)
docker_env_check Compare host .env with container environment variables

Commands

Command Description
/docker Container status dashboard — running containers, ports, health

How it works

On session start, the extension reads docker-compose.yml (or compose.yml) and injects container context into the system prompt. The agent knows which services exist, which ports are mapped, and which volumes are mounted.

When commands need to run inside a container, docker_exec handles the routing. You don't need to tell the agent "use docker exec" — it knows from context.

Examples

Container execution

The agent automatically routes commands through docker exec when it detects a Docker environment:

> Run the database migrations
> Run the test suite
> Check the PHP version in the app container

Or be explicit:

> Run "php artisan migrate" in the app container
> Execute "npm run build" in the node container

Log reading

> Show me the last 50 lines of the app container logs
> What errors are in the nginx logs?
> Tail the database logs and look for slow queries

Compose operations

> Rebuild the app container
> Restart the database service
> Bring up the entire stack
> Shut down all containers

Environment sync

> Check if my .env matches what the app container sees
> Compare environment variables between host and container

Status dashboard

/docker

Shows running containers, CPU/memory usage, port mappings, volume mounts, and health check status.

Requirements

  • Docker CLI installed and running
  • Docker Compose v2 (for compose operations)

See also

  • Herd — equivalent integration for Laravel Herd users on macOS
  • Performance Tools — N+1 detection, slow query analysis
  • Database Tools — direct MySQL, ClickHouse, and SQLite queries