Article
Robert Cemper · Mar 24, 2021 1m read

Problem with docker-compose

Environment:

  • Windows 10
  • Docker Desktop version v20.10.5

Since last update  of Docker Desktop (~ 2 weeks) I get this error message running docker-compose build

C:\GitHub\zme>docker-compose build
Building iris
failed to get console mode for stdout: The handle is invalid.

The protocol of build is somehow scrambled and not so useful.

Searching up & down the web I finally found a simple workaround to solve the problem.

C:\GitHub\zme>set COMPOSE_DOCKER_CLI_BUILD=0

Now the protocol is the same as I used to have and you can follow it with no problems
 

30
1 0 1 441
Log in or sign up to continue

Replies

Hey! I had the same issue. Apparently, this is an ongoing Issue with compose: https://github.com/docker/compose/issues/8186

Someone there posted a workaround for VSCode. So, in addition to your workaround, you could add this to your settings.json in VSCode (Same workaround, different environment)

    "terminal.integrated.env.windows": {
        "COMPOSE_DOCKER_CLI_BUILD": "0"
    },