Docker Community Forums

Share and learn in the Docker community.

Tty: true in docker-compose.yml get's an error with a Windows Image

Hi,

In other project with a sql linux image, I had to add a tty: true to make the container run and not exiting with code 0.

Now, in my current project, I need to use a Docker native on a Windows Server 2019 with process isolation.
The same tty: true setting provoke an error:

mssql |
mssql |
Traceback (most recent call last):
File “docker-compose”, line 6, in
File “compose\cli\main.py”, line 71, in main
File “compose\cli\main.py”, line 127, in perform_command
File “compose\cli\main.py”, line 1111, in up
File “compose\cli\log_printer.py”, line 105, in run
File “compose\cli\log_printer.py”, line 109, in write
File “site-packages\colorama\ansitowin32.py”, line 41, in write
File “site-packages\colorama\ansitowin32.py”, line 154, in write
File “site-packages\colorama\ansitowin32.py”, line 176, in write_and_convert
File “site-packages\colorama\ansitowin32.py”, line 248, in convert_osc
File “site-packages\colorama\winterm.py”, line 169, in set_title
File “site-packages\colorama\win32.py”, line 152, in SetConsoleTitle
ctypes.ArgumentError: argument 1: <class ‘ValueError’>: embedded null character

Any reason why is this not working ?
Any other way to solve the issue ?
txs
-v

2 Likes

I have the exact same error when using tty: true in my docker-compose.yml on windows.