-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No colorized output #2231
Comments
I confirm the bug. |
I don't remember what I did but I can't reproduce the bug anymore... I tried using Wait for @yajo and see if it still se the bug before closing it maybe. |
Weird, your test case works, but I'm using Odoo from
Is it possible that Odoo (Python) is doing anything to check the type of terminal and it gets different in docker-compose and docker? |
Yes, very possible. Try adding |
Amazing, it works, thanks! |
I don't think adding |
The tty:true doesn't work anymore :( |
confirm. this problem is back. @shin- maybe you can open this issue back? |
You can use 'cat' solution. |
this is a diffrent problem, but I realized that my output color problem can be result of my app specific setup. |
The |
when I activated this... my docker-compose does not terminate anymore.. stays hanging... |
If you are using Node, a lot of packages use a coloring library like chalk which checks for certain things such as the So just add
|
Adding both
and
dit it for me. |
Interesting, How do we get color when "attaching" to an existing docker container started by |
A simple workaround which consists in starting docker-compose in the background, writing the output to a logfile and then tailing the logfile.
|
This works for me without environment:
DEBUG_COLORS: "true"
TERM: xterm-256color
COLORTERM: truecolor |
Suggestion from docker/compose#2231 (comment) applied
When using
docker-compose logs
, it adds colors by container, but if the container's logs were colorized, they appear all in the same color.Colorized logs are very useful, so it should be respected by docker-compose.
The text was updated successfully, but these errors were encountered: