Skip to content

Instantly share code, notes, and snippets.

@dmage
Created April 10, 2017 17:36
Show Gist options
  • Save dmage/c57d019e5132844954b38ebf2111576f to your computer and use it in GitHub Desktop.
Save dmage/c57d019e5132844954b38ebf2111576f to your computer and use it in GitHub Desktop.
> 2017/04/10 17:54:33.109309 length=237 from=0 to=236
GET /v2/ HTTP/1.1\r
Host: registry.free-int.openshift.com\r
User-Agent: docker/1.12.6 go/go1.7.4 kernel/4.10.8-200.fc25.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.6 \\(linux\\))\r
Accept-Encoding: gzip\r
Connection: close\r
\r
< 2017/04/10 17:54:33.218820 length=520 from=0 to=519
HTTP/1.1 401 Unauthorized\r
Content-Type: application/json; charset=utf-8\r
Docker-Distribution-Api-Version: registry/2.0\r
Www-Authenticate: Bearer realm="https://registry.free-int.openshift.com:443/openshift/token"\r
X-Registry-Supports-Signatures: 1\r
Date: Mon, 10 Apr 2017 15:54:33 GMT\r
Content-Length: 87\r
Connection: close\r
Set-Cookie: c2596a42eeffcdea40a1159fd200d795=383f444d518fc5dc865a5ef455b812d3; path=/; HttpOnly; Secure\r
\r
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":null}]}
> 2017/04/10 17:54:33.588490 length=409 from=0 to=408
GET /openshift/token?account=oleg-4&scope=repository%3Afoobar%2Fbusybox%3Apush%2Cpull HTTP/1.1\r
Host: registry.free-int.openshift.com:443\r
User-Agent: docker/1.12.6 go/go1.7.4 kernel/4.10.8-200.fc25.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.6 \\(linux\\))\r
Authorization: Basic <skipped>\r
Accept-Encoding: gzip\r
Connection: close\r
\r
< 2017/04/10 17:54:33.716736 length=421 from=0 to=420
HTTP/1.1 200 OK\r
Content-Type: application/json\r
Docker-Distribution-Api-Version: registry/2.0\r
Date: Mon, 10 Apr 2017 15:54:33 GMT\r
Content-Length: 117\r
Connection: close\r
Set-Cookie: c2596a42eeffcdea40a1159fd200d795=383f444d518fc5dc865a5ef455b812d3; path=/; HttpOnly; Secure\r
Cache-control: private\r
\r
{"access_token":"<token>","token":"<token>"}
> 2017/04/10 17:54:34.062549 length=369 from=0 to=368
POST /v2/foobar/busybox/blobs/uploads/ HTTP/1.1\r
Host: registry.free-int.openshift.com\r
User-Agent: docker/1.12.6 go/go1.7.4 kernel/4.10.8-200.fc25.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.6 \\(linux\\))\r
Content-Length: 0\r
Authorization: Bearer <token>\r
Content-Type: \r
Accept-Encoding: gzip\r
Connection: close\r
\r
< 2017/04/10 17:54:34.803812 length=742 from=0 to=741
HTTP/1.1 202 Accepted\r
Content-Length: 0\r
Docker-Distribution-Api-Version: registry/2.0\r
Docker-Upload-Uuid: e1bee48c-cb97-42cb-a965-9315ca57d22c\r
Location: https://registry.free-int.openshift.com:443/v2/foobar/busybox/blobs/uploads/e1bee48c-cb97-42cb-a965-9315ca57d22c?_state=uHlTqZhFaSpKzaKgdkJSf-cuVVzhQqb1kusQspdNtEB7Ik5hbWUiOiJmb29iYXIvYnVzeWJveCIsIlVVSUQiOiJlMWJlZTQ4Yy1jYjk3LTQyY2ItYTk2NS05MzE1Y2E1N2QyMmMiLCJPZmZzZXQiOjAsIlN0YXJ0ZWRBdCI6IjIwMTctMDQtMTBUMTU6NTQ6MzQuMTI4MDg1MTc5WiJ9\r
Range: 0-0\r
X-Registry-Supports-Signatures: 1\r
Date: Mon, 10 Apr 2017 15:54:34 GMT\r
Content-Type: text/plain; charset=utf-8\r
Connection: close\r
Set-Cookie: c2596a42eeffcdea40a1159fd200d795=e1e084a00b720607bae85daea7d54132; path=/; HttpOnly; Secure\r
\r
> 2017/04/10 17:54:35.170423 length=562 from=0 to=561
PATCH /v2/foobar/busybox/blobs/uploads/e1bee48c-cb97-42cb-a965-9315ca57d22c?_state=uHlTqZhFaSpKzaKgdkJSf-cuVVzhQqb1kusQspdNtEB7Ik5hbWUiOiJmb29iYXIvYnVzeWJveCIsIlVVSUQiOiJlMWJlZTQ4Yy1jYjk3LTQyY2ItYTk2NS05MzE1Y2E1N2QyMmMiLCJPZmZzZXQiOjAsIlN0YXJ0ZWRBdCI6IjIwMTctMDQtMTBUMTU6NTQ6MzQuMTI4MDg1MTc5WiJ9 HTTP/1.1\r
Host: registry.free-int.openshift.com:443\r
User-Agent: docker/1.12.6 go/go1.7.4 kernel/4.10.8-200.fc25.x86_64 os/linux arch/amd64 UpstreamClient(Docker-Client/1.12.6 \\(linux\\))\r
Transfer-Encoding: chunked\r
Accept-Encoding: gzip\r
Connection: close\r
\r
1\r
.\r
> 2017/04/10 17:54:35.171184 length=2358 from=562 to=2919
...
< 2017/04/10 17:54:35.740037 length=642 from=0 to=641
HTTP/1.1 401 Unauthorized\r
Content-Type: application/json; charset=utf-8\r
Docker-Distribution-Api-Version: registry/2.0\r
Www-Authenticate: Bearer realm="https://registry.free-int.openshift.com:443/openshift/token"\r
X-Registry-Supports-Signatures: 1\r
Date: Mon, 10 Apr 2017 15:54:35 GMT\r
Content-Length: 208\r
Connection: close\r
Set-Cookie: c2596a42eeffcdea40a1159fd200d795=e1e084a00b720607bae85daea7d54132; path=/; HttpOnly; Secure\r
\r
{"errors":[{"code":"UNAUTHORIZED","message":"authentication required","detail":[{"Type":"repository","Name":"foobar/busybox","Action":"pull"},{"Type":"repository","Name":"foobar/busybox","Action":"push"}]}]}
> ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment