[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

openshift 3.11 and docker image repo running using http not https


Has anyone seen

pulling image error : Get https://docker-registry.default.svc:5000/v2/:  http: server gave HTTP response to HTTPS client
error: build error: unable to get docker-

Error message while creating and deploying new project and application?

I am following simply


 openssl s_client -connect   docker-registry.default.svc:5000
140196328826768:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:794:
no peer certificate available
No client certificate CA names sent
SSL handshake has read 7 bytes and written 289 bytes
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
    Protocol  : TLSv1.2
    Cipher    : 0000
    Key-Arg   : None
    Krb5 Principal: None
    PSK identity: None
    PSK identity hint: None
    Start Time: 1539896539
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)

I have used

  1. Delete the default registry using the following command.

    $ oc delete all -l docker-registry=default
  2. Create the docker-registry service in the default project using the registry service account.

    $ oc adm registry
to create a new registry and

[root master ~]# oc get pods -n default                                      
NAME                       READY     STATUS    RESTARTS   AGE
docker-registry-1-vbxhw    1/1       Running   0          8m
registry-console-1-bqt99   1/1       Running   1          11h
router-1-qzkps             1/1       Running   0          1h
[root master ~]#
[root master ~]#
[root master ~]# oc logs -n default  -f registry-console-1-bqt99                                        
INFO: cockpit-ws: Using certificate: /etc/cockpit/ws-certs.d/0-self-signed.cert

It seems my docker registry simply running on http not https

 # nc  docker-registry.default.svc 5000                 

HTTP/1.1 400 Bad Request
Content-Type: text/plain; charset=utf-8
Connection: close

400 Bad Request

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]