When running docker-compose up in Windows PowerShell using Docker Desktop on WSL2, I get
Creating network "test_default" with the default driver
Building master
failed to get console mode for stdout: The handle is invalid.
There is a hint at failed to get console mode for stdout: The handle is invalid:
The problem is, I don't see output when image is building
What is to be done with the warning, if at all?
I have only very vague ideas what might help, at least if it is about the lack of a terminal to stdout. This is just a brainstorming:
- Install a package equal to "console-setup" (e.g. gnome-terminal with
DEBIAN_FRONTEND=noninteractive apt-get install -y gnome-terminal). - Switch on the terminal dialog of chosen commands with
TERM=$TERM DEBIAN_FRONTEND=dialog apt-get install -y MY_COMMAND. Somehow I have never got this to work in a Dockerfile, but perhaps it works in a docker-compose command? - Avoid any terminal dialog by
DEBIAN_FRONTEND=noninteractive apt-get install -y MY_COMMAND. - Or use
-ttyparameter to get a pseudo terminal.