Skip to content

Strip project prefix from docker-compose up output in non-compatibility mode #11188

@gyorokpeter

Description

@gyorokpeter

Description

Without compatibility mode, the prefix looks like project-container-1. With compatibility mode (export COMPOSE_COMPATIBILITY=true), it's container_1, lacking the prefix. In my case the project name has to be very long, and printing it on every line makes it hard to read and increases the size of the log file by a significant amount. Considering that compatibility mode should only be a temporary measure, I would like to be able to strip the project prefix from the log lines so the prefix is just container-1 without the project name even when not using compatibility mode. The closest option seems to be --no-log-prefix but that strips the entire prefix, not just the project name, making it hard to tell which container is outputting which line.

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