Skip to content

docker-compose logs for a specific instance of a service #10130

@asaha123

Description

@asaha123

Description

When we have multiple replicas of a service, it would be useful to be able to query the logs for a specific instance.

Similar to how we have for docker-compose exec via the index option:

$ docker-compose exec -ti --index 1 <service name> <command>

I looked at the open issues and couldn't see this.

I will be happy to work on a PR as well, if this sounds sensible to add.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions