Skip to content

docker doesn't understand 'x-gzip' encoding and thus fails to pull images #17595

@shishir-a412ed

Description

@shishir-a412ed

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:

http://pastebin.com/SxLLfR9V

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/distributionImage Distributionkind/enhancementEnhancements are not bugs or new features but can improve usability or performance.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions