No colors with docker-compose up.
See original GitHub issueHi, when I run docker image with sh or bash colors works perfectly.
But when I run docker-compose up
with tty: true
, I see always m
character on each log line, and no color, I also found that if there is some space before debug
colors are working well.
For example nodejs nodemon
tool is showing some debug with space and without space (see screenshot).
Probably it is something more docker-compose related, but I wonder why nodemon logs some time comes with color and sometimes with m
character??
Also ms
at the end of the line is with colors.
fn_ws_api | nodemon:watch watching dir: /root/app/lib/models/ModelBase.js +0ms
fn_ws_api | nodemon watch is complete +0ms
fn_ws_api | mws:info:db Connecting.. +0ms
fn_ws_api | mws:info:index Server is listening on port - 9002 +0ms
Issue Analytics
- State:
- Created 6 years ago
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Option to not print color · Issue #1865 · docker/compose - GitHub
When using docker compose commands colors will always be printed. There is no option to disable this and simply catting the logs through...
Read more >Can I specify the color of a service's log prefix in my docker ...
The problem is, one color is the exact same color as the background of powershell, which I use to up the services. Can...
Read more >docker compose up - Docker Documentation
Recreate containers even if their configuration and image haven't changed. --no-build, Don't build an image, even if it's missing. --no-color ...
Read more >docker-compose - Define and run multi-container applications ...
yml` are picked up. If you do not want existing containers to be recreated, `docker-compose up --no-recreate` will re-use existing containers. --allow ...
Read more >Introduction to Docker Compose - Baeldung
Learn about Docker Compose's main features using a simple example. ... run different containers exposing the same ports without collisions.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
With newer docker-compose version it works perfect:
so it was the docker-compose issue.
Thank you @TooTallNate for your time and help!
I get the expected output actually:
What version of
docker
and/ordocker-compose
are you using? What OS? etc.Here’s mine: