Skip to content
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

Colors in docker container #79

Closed
Martodox opened this issue Aug 13, 2015 · 3 comments
Closed

Colors in docker container #79

Martodox opened this issue Aug 13, 2015 · 3 comments
Labels

Comments

@Martodox
Copy link

Hi.
I am using gulp in my docker container (which depends on chalk)
It uses, by default, chalk.red, etc.
It works fine except for the fact, colors don't work in docker container. All logs come out B&W.
The work around for that is usage of chalk.styles.color.open and ... .end syntax.

Is there a way to make all default functions use ansi coloring?

@Qix-
Copy link
Member

Qix- commented Aug 13, 2015

Try setting the environment variable FORCE_COLOR=1. If that doesn't work (it should), try running the command with --colors as a flag.

You can check out the supports-color source for more things to try :)

@Qix- Qix- added the question label Sep 3, 2015
@Qix-
Copy link
Member

Qix- commented Sep 3, 2015

Hey @Martodox, I'm going to assume this worked for you. If you have any other issues let us know!

@Qix- Qix- closed this as completed Sep 3, 2015
@Toub
Copy link

Toub commented Oct 28, 2016

FORCE_COLOR=1 worked for me, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants