Skip to content

docker-compose logs behavior is different from docker logs #2187

@AndersKOlsson

Description

@AndersKOlsson

docker-compose logs only returns when the service(s) exit. docker logs returns directly. This is confusing, and makes it hard to get logs in a automation environment.

I suggest the default behavior of docker-compose logs should be to return, just like docker does. Then the '-f, --follow' flag could be introduced, which would mimic the behavior that we have today.

Related: #1549

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions