compose: "http: Hijack is incompatible with use of CloseNotifier in same ServeHTTP call" errors

Using 1.8-rc1 and docker 1.12-rc3 with the following compose file:

version: '2'
services:
  test:
    build:
      context: .

and Dockerfile:

FROM alpine

If I do:

whale:comprun justin$ docker-compose build test
Building test
Step 1 : FROM alpine
 ---> f70c828098f5
Successfully built f70c828098f5
whale:comprun justin$ docker-compose run test ls
http: Hijack is incompatible with use of CloseNotifier in same ServeHTTP call
                                                                             http: Hijack is incompatible with use of CloseNotifier in same ServeHTTP call
                                                                                                                                                          whale:comprun justin$ 

Looks like a missed case in https://github.com/docker/compose/pull/1374

cc @dnephin

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 21
  • Comments: 58 (3 by maintainers)

Most upvoted comments

Yay! pevious version in fact can be found in trash (on OSX)

I now have the same issue. Just upgraded and my compose setup refuses to start šŸ˜¦

@justincormack where is the hotfix? ā€œCheck for updatesā€ says my rc3 Beta 18 is the latest but I still get the [Hi]jack is incompatible with use of CloseNotifier in same ServeHTTP call error.

$ docker version
Client:
 Version:      1.12.0-rc3
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   91e29e8
 Built:        Sat Jul  2 00:09:24 2016
 OS/Arch:      darwin/amd64
 Experimental: true

Server:
 Version:      1.12.0-rc3
 API version:  1.24
 Go version:   go1.6.2
 Git commit:   876f3a7
 Built:        Tue Jul  5 02:20:13 2016
 OS/Arch:      linux/amd64
 Experimental: true

Roll back to Beta17 until this is fixed: https://download.docker.com/mac/beta/1.12.0.9779/Docker.dmg

How can such a thing slip through QA, beta, alpha or whatever.

Coming from docker, you kind expected to see a CI, right.

Found the old build in the Trash (9779) works again

Apologies for this, a hotfix has been released and it should be safe to update.

And I will never empty my trash againā€¦

Docker version 1.12.0-rc3, build 91e29e8, experimental Still have this error:

Creating api_data_1
Creating api_db_1
Creating api_api_1
Attaching to api_data_1, api_db_1, api_api_1
db_1    | jack is incompatible with use of CloseNotifier in same ServeHTTP call
api_1   | jack is incompatible with use of CloseNotifier in same ServeHTTP call
data_1  | jack is incompatible with use of CloseNotifier in same ServeHTTP call
api_data_1 exited with code 0

Thank god for the Thrash

Busted in Boston, too.

Apologies for this. This does not appear to be a compose bug, it is a Docker for Mac specific issue, and we will be rolling out a fix as soon as possible. In the mean time please see the download links for old versions https://github.com/docker/docker/issues/24343#issuecomment-230599107 if you updated.

Uninstall docker and download beta-17 from site seems to be a solution: https://download.docker.com/mac/beta/Docker.dmg

Running the latest Docker for Mac that mine says is available (1.12.0-rc3-beta18 build: 9969), I still get this error trying to bring up docker-compose stacks.

I see this message on Windows too.

For what itā€™s worth, downloading the old version and replacing it with the new version worked flawlessly for me on Mac: https://github.com/docker/docker/issues/24343#issuecomment-230605770

So old installer allowed me to roll back and now workingā€¦ Iā€™d share the dmg, but not really good to trust links from strangers on the net.

+1 for Version 1.12.0-rc3-beta18 (build: 9969)

+1 for this issue. Just upgraded to Docker for Mac Version 1.12.0-rc3-beta18 (build: 9969) and Iā€™m running into this issue