Skip to content

Manifest Lists incorrectly queried from Docker Hub #190

Open
@cquon

Description

@cquon

I was using the registry client to query manifests / manifest lists from Docker Hub. By only setting the "Accept" header to schema2 manifests, manifest lists were not correctly being returned.

ie:

$ reg manifest alpine
INFO[0000] domain: docker.io
INFO[0000] server address: https://registry-1.docker.io
{
   "schemaVersion": 2,
   "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
   "config": {
     "mediaType": "application/vnd.docker.container.image.v1+json",
     "size": 1512,
     "digest": "sha256:055936d3920576da37aa9bc460d70c5f212028bda1c08c0879aedf03d7a66ea1"
   },
   "layers": [
     {
       "mediaType": "application/vnd.docker.image.rootfs.diff.tar.gzip",
       "size": 2757034,
       "digest": "sha256:e7c96db7181be991f19a9fb6975cdbbd73c65f4a2681348e63a141a2192a5f10"
     }
   ]
 }

When the alpine image is indeed a manifest list.

I have a follow up PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions