You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
$ docker compose version
Docker Compose version v2.17.3
$ docker compose -p bidule up
[+] Running 2/2
✔ Network bidule_default Created 0.0s
✔ Container bidule-test-1 Created 0.1s
Attaching to bidule-test-1
bidule-test-1 | PING localhost (127.0.0.1): 56 data bytes
bidule-test-1 | 64 bytes from 127.0.0.1: seq=0 ttl=64 time=0.675 ms
bidule-test-1 | 64 bytes from 127.0.0.1: seq=1 ttl=64 time=0.089 ms
^CGracefully stopping... (press Ctrl+C again to force)
The ask is to be able to specify that I want the prefix to be test-1 instead of bidule-test-1.
Description
Without compatibility mode, the prefix looks like
project-container-1
. With compatibility mode (export COMPOSE_COMPATIBILITY=true
), it'scontainer_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 justcontainer-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.The text was updated successfully, but these errors were encountered: