Skip to content

Instantly share code, notes, and snippets.

@hammerdr
Last active June 24, 2016 21:13
Show Gist options
  • Save hammerdr/79dc9587c940ec323851fc0267a740eb to your computer and use it in GitHub Desktop.
Save hammerdr/79dc9587c940ec323851fc0267a740eb to your computer and use it in GitHub Desktop.
moby:~# docker pull ubuntu
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 192.168.65.1:53: dial tcp 192.168.65.1:53: getsockopt: connection refused
moby:~# curl -v 'https://auth.docker.io/token?account=hammerdr&scope=repository%
3Alibrary%2Fubuntu%3Apull&service=registry.docker.io'
* Trying 52.20.128.116...
* Connected to auth.docker.io (52.20.128.116) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: none
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: OU=GT98568428; OU=See www.rapidssl.com/resources/cps (c)15; OU=Domain Control Validated - RapidSSL(R); CN=*.docker.io
* start date: Mar 19 17:34:32 2015 GMT
* expire date: Apr 21 01:51:52 2018 GMT
* subjectAltName: host "auth.docker.io" matched cert's "*.docker.io"
* issuer: C=US; O=GeoTrust Inc.; CN=RapidSSL SHA256 CA - G3
* SSL certificate verify ok.
> GET /token?account=hammerdr&scope=repository%3Alibrary%2Fubuntu%3Apull&service=registry.docker.io HTTP/1.1
> Host: auth.docker.io
> User-Agent: curl/7.49.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Fri, 24 Jun 2016 20:43:16 GMT
< Content-Length: 1443
< Strict-Transport-Security: max-age=31536000
<
{"token":"eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsIng1YyI6WyJNSUlDTHpDQ0FkU2dBd0lCQWdJQkFEQUtCZ2dxaGtqT1BRUURBakJHTVVRd1FnWURWUVFERXp0Uk5Gb3pPa2RYTjBrNldGUlFSRHBJVFRSUk9rOVVWRmc2TmtGRlF6cFNUVE5ET2tGU01rTTZUMFkzTnpwQ1ZrVkJPa2xHUlVrNlExazFTekFlRncweE5qQTFNekV5TXpVNE5UZGFGdzB4TnpBMU16RXlNelU0TlRkYU1FWXhSREJDQmdOVkJBTVRPMUV6UzFRNlFqSkpNenBhUjFoT09qSlhXRTA2UTBWWFF6cFVNMHhPT2tvMlYxWTZNbGsyVHpwWlFWbEpPbGhQVTBRNlZFUlJTVG8wVWtwRE1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRVo0NkVLV3VKSXhxOThuUC9GWEU3U3VyOXlkZ3c3K2FkcndxeGlxN004VHFUa0N0dzBQZm1SS2VLdExwaXNTRFU4LzZseWZ3QUFwZWh6SHdtWmxZR2dxT0JzakNCcnpBT0JnTlZIUThCQWY4RUJBTUNCNEF3RHdZRFZSMGxCQWd3QmdZRVZSMGxBREJFQmdOVkhRNEVQUVE3VVROTFZEcENNa2t6T2xwSFdFNDZNbGRZVFRwRFJWZERPbFF6VEU0NlNqWlhWam95V1RaUE9sbEJXVWs2V0U5VFJEcFVSRkZKT2pSU1NrTXdSZ1lEVlIwakJEOHdQWUE3VVRSYU16cEhWemRKT2xoVVVFUTZTRTAwVVRwUFZGUllPalpCUlVNNlVrMHpRenBCVWpKRE9rOUdOemM2UWxaRlFUcEpSa1ZKT2tOWk5Vc3dDZ1lJS29aSXpqMEVBd0lEU1FBd1JnSWhBTzYxSWloN1FUcHNTMFFIYUNwTDFZTWNMMnZXZlNydlhHbHpSRDEwN2NRUEFpRUFtZXduelNYRHplRGxqcDc4T1NsTFFzbnROYWM5eHRyYW0xU0kxY0ZXQ2tJPSJdfQ.eyJhY2Nlc3MiOlt7InR5cGUiOiJyZXBvc2l0b3J5IiwibmFtZSI6ImxpYnJhcnkvdWJ1bnR1IiwiYWN0aW9ucyI6WyJwdWxsIl19XSwiYXVkIjoicmVnaXN0cnkuZG9ja2VyLmlvIiwiZXhwIjoxNDY2ODAxMjk2LCJpYXQiOjE0NjY4MDA5OTYsImlzcyI6ImF1dGguZG9ja2VyLmlvIiwianRpIjoiYUZodV96UjhKaTZwNVBSd20zNVAiLCJuYmYiOjE0NjY4MDA5OTYsInN1YiI6IiJ9.xx9bDXbsBDqXJIqEAj_Y7wRetaf43i0pK5aivJjHw2Xn9gOTtzbgkmB5zgZT15muzG6J9Kx7TW0TufkOjjo0AQ"}
* Connection #0 to host auth.docker.io left intact
Containers: 25
Running: 0
Paused: 0
Stopped: 25
Images: 411
Server Version: 1.12.0-rc2
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 421
Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host null overlay
Swarm: inactive
Runtimes: default
Default Runtime: default
Security Options: seccomp
Kernel Version: 4.4.13-moby
Operating System: Alpine Linux v3.4
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 1.954 GiB
Name: moby
ID: MOZR:IBXH:AREG:X746:JOFD:TB7C:7ORI:LBJQ:YO66:UHF2:PWMZ:UJJO
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): true
File Descriptors: 21
Goroutines: 28
System Time: 2016-06-24T20:29:19.405757302Z
EventsListeners: 1
No Proxy: *.local, 169.254/16
Username: hammerdr
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
127.0.0.0/8
NETWORK ID NAME DRIVER SCOPE
aca286c000c2 bridge bridge local
a7c5553ce1ab host host local
4435dbc4c825 none null local
time="2016-06-24T20:33:38.596845773Z" level=debug msg="Trying to pull ubuntu from https://registry-1.docker.io v2"
time="2016-06-24T20:33:39.392204067Z" level=error msg="Error trying v2 registry: Get https://registry-1.docker.istry: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 192.168.65.1:53: dial tcp 192.168.65.1:53: getsockopt: connection refused"
time="2016-06-24T20:42:14.694909958Z" level=error msg="Attempting next endpoint for pull after error: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 192.168.65.1:53: dial tcp 192.168.65.1:53: getsockopt: connection refused"
time="2016-06-24T20:42:14.695343050Z" level=debug msg="Skipping v1 endpoint https://index.docker.io because v2 registry was detected"
time="2016-06-24T20:42:14.695712521Z" level=error msg="Handler for POST /v1.24/images/create returned error: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 192.168.65.1:53: dial tcp 192.168.65.1:53: getsockopt: connection refused"
time="2016-06-24T20:44:34.612300651Z" level=debug msg="Calling GET /v1.24/info"
time="2016-06-24T20:44:34.755523905Z" level=debug msg="Calling POST /v1.24/images/create?fromImage=ubuntu&tag=latest"
time="2016-06-24T20:44:34.756395428Z" level=debug msg="Trying to pull ubuntu from https://registry-1.docker.io v2"
time="2016-06-24T20:44:35.652642799Z" level=error msg="Error trying v2 registry: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 192.168.65.1:53: dial tcp 192.168.65.1:53: getsockopt: connection refused"
time="2016-06-24T20:44:35.653156560Z" level=error msg="Attempting next endpoint for pull after error: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 192.168.65.1:53: dial tcp 192.168.65.1:53: getsockopt: connection refused"
time="2016-06-24T20:44:35.653553575Z" level=debug msg="Skipping v1 endpoint https://index.docker.io because v2 registry was detected"
time="2016-06-24T20:44:35.653908999Z" level=error msg="Handler for POST /v1.24/images/create returned error: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 192.168.65.1:53: dial tcp 192.168.65.1:53: getsockopt: connection refused"
time="2016-06-24T20:44:44.527658969Z" level=debug msg="Calling GET /v1.24/info"
time="2016-06-24T20:44:44.688849265Z" level=debug msg="Calling POST /v1.24/images/create?fromImage=ubuntu&tag=latest"
time="2016-06-24T20:44:44.689437182Z" level=debug msg="Trying to pull ubuntu from https://registry-1.docker.io v2"
time="2016-06-24T20:44:45.392012400Z" level=error msg="Error trying v2 registry: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 192.168.65.1:53: dial tcp 192.168.65.1:53: getsockopt: connection refused"
time="2016-06-24T20:44:45.392588507Z" level=error msg="Attempting next endpoint for pull after error: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 192.168.65.1:53: dial tcp 192.168.65.1:53: getsockopt: connection refused"
time="2016-06-24T20:44:45.393080035Z" level=debug msg="Skipping v1 endpoint https://index.docker.io because v2 registry was detected"
time="2016-06-24T20:44:45.393474998Z" level=error msg="Handler for POST /v1.24/images/create returned error: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 192.168.65.1:53: dial tcp 192.168.65.1:53: getsockopt: connection refused"
time="2016-06-24T20:51:54.069618662Z" level=debug msg="Calling GET /v1.24/containers/json"
time="2016-06-24T20:51:57.886068786Z" level=debug msg="Calling GET /v1.24/info"
time="2016-06-24T20:51:58.037340051Z" level=debug msg="Calling POST /v1.24/images/create?fromImage=ubuntu&tag=latest"
time="2016-06-24T20:51:58.038228096Z" level=debug msg="Trying to pull ubuntu from https://registry-1.docker.io v2"
time="2016-06-24T20:51:58.640859728Z" level=error msg="Error trying v2 registry: Get https://registry-1.docker.io/v2/library/ubuntu/manifests/latest: Get https://auth.docker.io/token?scope=repository%3Alibrary%2Fubuntu%3Apull&service=registry.docker.io: dial tcp: lookup auth.docker.io on 192.168.65.1:53: dial tcp 192.
#
# Mac OS X Notice
#
# This file is not used by the host name and address resolution
# or the DNS query routing mechanisms used by most processes on
# this Mac OS X system.
#
# This file is automatically generated.
#
search hq.squareup.com squareup.com corp.squareup.com
nameserver 172.24.192.11
nameserver 172.24.192.12
nameserver 192.168.18.193
nameserver 192.168.18.194
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment