Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dmage/093acfb7411a7059bc0491efc5e31b5b to your computer and use it in GitHub Desktop.
Save dmage/093acfb7411a7059bc0491efc5e31b5b to your computer and use it in GitHub Desktop.
$ TOKEN=$(boater token docker.io repository:library/fedora:pull)
$ curl -I -L -H "Authorization: Bearer $TOKEN" https://index.docker.io/v2/library/fedora/manifests/latest
HTTP/1.1 200 OK
Content-Length: 3801
Content-Type: application/vnd.docker.distribution.manifest.v1+prettyjws
Docker-Content-Digest: sha256:fba372d3e27f11ae600bf1bcfaf032810c7621303973680898bb5dc2716b47cf
Docker-Distribution-Api-Version: registry/2.0
Etag: "sha256:fba372d3e27f11ae600bf1bcfaf032810c7621303973680898bb5dc2716b47cf"
Date: Fri, 23 Jun 2017 12:09:23 GMT
Strict-Transport-Security: max-age=31536000
$ curl -I -L -H "Authorization: Bearer $TOKEN" https://index.docker.io/v2/library/fedora/manifests/sha256:fba372d3e27f11ae600bf1bcfaf032810c7621303973680898bb5dc2716b47cf
HTTP/1.1 404 Not Found
Content-Type: application/json; charset=utf-8
Docker-Distribution-Api-Version: registry/2.0
Date: Fri, 23 Jun 2017 12:09:38 GMT
Content-Length: 190
Strict-Transport-Security: max-age=31536000
$ curl -I -L -H "Authorization: Bearer $TOKEN" -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' https://index.docker.io/v2/library/fedora/manifests/latest
HTTP/1.1 200 OK
Content-Length: 529
Content-Type: application/vnd.docker.distribution.manifest.v2+json
Docker-Content-Digest: sha256:69281ddd7b2600e5f2b17f1e12d7fba25207f459204fb2d15884f8432c479136
Docker-Distribution-Api-Version: registry/2.0
Etag: "sha256:69281ddd7b2600e5f2b17f1e12d7fba25207f459204fb2d15884f8432c479136"
Date: Fri, 23 Jun 2017 12:10:33 GMT
Strict-Transport-Security: max-age=31536000
$ curl -I -L -H "Authorization: Bearer $TOKEN" https://index.docker.io/v2/library/fedora/manifests/sha256:69281ddd7b2600e5f2b17f1e12d7fba25207f459204fb2d15884f8432c479136
HTTP/1.1 200 OK
Content-Length: 529
Content-Type: application/vnd.docker.distribution.manifest.v2+json
Docker-Content-Digest: sha256:69281ddd7b2600e5f2b17f1e12d7fba25207f459204fb2d15884f8432c479136
Docker-Distribution-Api-Version: registry/2.0
Etag: "sha256:69281ddd7b2600e5f2b17f1e12d7fba25207f459204fb2d15884f8432c479136"
Date: Fri, 23 Jun 2017 12:11:00 GMT
Strict-Transport-Security: max-age=31536000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment