question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No colors with docker-compose up.

See original GitHub issue

Hi, 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

image

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
Kostanoscommented, Sep 17, 2017

With newer docker-compose version it works perfect:

docker-compose version 1.15.0, build e12f3b9

so it was the docker-compose issue.

Thank you @TooTallNate for your time and help!

1reaction
TooTallNatecommented, Sep 17, 2017

I get the expected output actually:

screen shot 2017-09-18 at 12 10 39 am

What version of docker and/or docker-compose are you using? What OS? etc.

Here’s mine:

$ docker --version
Docker version 17.06.2-ce, build cec0b72

$ docker-compose --version
docker-compose version 1.14.0, build c7bdf9e
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found