Docker Community Forums

Share and learn in the Docker community.

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


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\”, line 71, in main
File “compose\cli\”, line 127, in perform_command
File “compose\cli\”, line 1111, in up
File “compose\cli\”, line 105, in run
File “compose\cli\”, line 109, in write
File “site-packages\colorama\”, line 41, in write
File “site-packages\colorama\”, line 154, in write
File “site-packages\colorama\”, line 176, in write_and_convert
File “site-packages\colorama\”, line 248, in convert_osc
File “site-packages\colorama\”, line 169, in set_title
File “site-packages\colorama\”, 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 ?


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