hypriot / image-builder-rpi

SD card image for Raspberry Pi with Docker: HypriotOS
http://blog.hypriot.com/post/how-to-get-docker-working-on-your-favourite-arm-board-with-hypriotos/
MIT License
1.07k stars 168 forks source link

i cant pull images ... http: server gave HTTP response to HTTPS client #281

Open unclesamwk opened 5 years ago

unclesamwk commented 5 years ago

Hey,

i cant pull images ... i use raspberry 3 hypriot versions i've tested 1.9 + 1.10

has anyone else, the same problem???

$ docker -D -l debug  pull hypriot/rpi-traefik
Using default tag: latest
Error response from daemon: Get https://registry-1.docker.io/v2/: http: server gave HTTP response to HTTPS client
HypriotOS/armv7: pirate@black-pearl in ~
$ curl -v "https://registry-1.docker.io/v2"
*   Trying 52.70.175.131...
* TCP_NODELAY set
* Connected to registry-1.docker.io (52.70.175.131) port 443 (#0)
* ALPN, offering h2
* 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: /etc/ssl/certs
* TLSv1.2 (OUT), TLS header, Certificate Status (22):
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
* Curl_http_done: called premature == 1
* stopped the pause stream!
* Closing connection 0
curl: (35) error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
HypriotOS/armv7: root@black-pearl in ~
#  wget --secure-protocol=SSLv2 -O /dev/null https://registry-1.docker.io/v2/
--2019-03-17 17:03:02--  https://registry-1.docker.io/v2/
Resolving registry-1.docker.io (registry-1.docker.io)... 34.206.236.31, 34.197.189.129, 34.199.40.84, ...
Connecting to registry-1.docker.io (registry-1.docker.io)|34.206.236.31|:443... connected.
GnuTLS: A TLS fatal alert has been received.
GnuTLS: received alert [40]: Handshake failed
Unable to establish SSL connection.

greetings sam

StefanScherer commented 5 years ago

I sporadically see this problem. But after a retry a docker pull worked for me.