-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Description
If we have a docker v2 registry service (not distribution but pulp) behind httpd, httpd sends blobs with header specifying "x-gzip". Unfortunately docker engine doesn't understands this and fails to verify the blobs:
Relevant line from /etc/httpd/conf/magic
0 string \037\213 application/octet-stream x-gzip
With curl, this works just fine and one can download and verify all blobs.
Version-Release number of selected component (if applicable):
docker-1.9.0-5.git11b81f9.fc24.x86_64
it also fails with 1.8 docker
This is the response from server:
HTTP/1.1 200 OK
Date: Mon, 26 Oct 2015 13:30:22 GMT
Server: Apache/2.2.15 (Red Hat)
Last-Modified: Fri, 23 Oct 2015 12:13:20 GMT
ETag: "43c38-11736-522c48997e618"
Accept-Ranges: bytes
Content-Length: 71478
Docker-Distribution-API-Version: registry/2.0
Connection: close
Content-Type: application/x-tar
Content-Encoding: x-gzip
When getting rid of the "x-gzip", docker succeeds to pull the image.