moby: Hijack is incompatible with use of CloseNotifier

Hi,

I upgraded my docker to 1.6 today (I believe it was on 1.5, but I’m not 100% sure).

I now have a problem where my docker client gives me docker.errors.APIError: 500 Server Error: Internal Server Error ("http: Hijack is incompatible with use of CloseNotifier") when I try to post to /containers/<container>/attach (my client uses dockerpty and docker-py)

It would appear that compose has a similar problem (https://github.com/docker/compose/issues/1275).

If I run an image with the docker cli it does work (for example, docker run -it ubuntu:14.04 /bin/bash)

I’m not entirely sure how to debug this issue.

Thanks

Stephen.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 47 (23 by maintainers)

Commits related to this issue

Most upvoted comments

I’m getting this error after upgrading today.

docker info

Containers: 8
 Running: 2
 Paused: 0
 Stopped: 6
Images: 282
Server Version: 1.12.0-rc3
Storage Driver: aufs
 Root Dir: /var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 320
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
 Volume: local
 Network: host null overlay bridge
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Security Options: seccomp
Kernel Version: 4.4.14-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 1.954 GiB
Name: moby
ID: JRAU:RVZS:OEOQ:JMBF:PRR6:7TPD:UG5U:TRR6:4T2W:AGWF:5TFV:SLD2
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: 29
 Goroutines: 47
 System Time: 2016-07-05T20:24:15.611271815Z
 EventsListeners: 1
No Proxy: *.local, 169.254/16
Username: aeikenberry
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 127.0.0.0/8

For example: docker-compose run django python manage.py migrate

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