Docker Community Forums

Share and learn in the Docker community.

Output colors in powershell console


(Fpellet) #1

Expected behavior

See beautiful color in powershell :slight_smile:

Actual behavior

See color codes and break output formatting

Information

Powershell : http://s28.postimg.org/irsaeoq71/powershell.jpg
Expected : http://s23.postimg.org/qnhxrf72z/bash.jpg
Thanks to store image, I don’t allow to use upload of your site (new user)

For me it’s not important, I don’t use powershell console, but I think it’s your target


(Michael Friis) #2

Hm, interesting. Using PowerShell on my machine the output is correct but with no color. - what’s your output of $PSVersionTable.PSVersion?


(Fpellet) #3


(David Gageot) #4

@friism , I guess you are running Powershell inside a terminal application like ConEmu right?

@fpellet I guess you tried with a vanilla Powershell.

Powershell and cmd.exe don’t support ANSI codes which docker-compose is using.
It’s implements in docker CLI though: https://github.com/docker/docker/pull/10864

David


(Michael Friis) #5

@dgageot you’re right