Docker Community Forums

Share and learn in the Docker community.

Issue while login to docker-registry.default.svc:5000

Hi team,

We are getting issue while login to docker registry ,
Error as below :
[root@DGSLBACA etc]# docker login docker-registry.default.svc:5000 -u admin -p ‘oc whoami -t’
WARNING! Using --password via the CLI is insecure. Use --password-stdin.
Error response from daemon: Get http://docker-registry.default.svc:5000/v2/: dial tcp connect: connection refused

resolv.conf file entry as below .

Generated by NetworkManager

search cluster.local default.svc.cluster.local svc.cluster.local cluster.local default.svc

Version details
docker version : 19.03
Openshift version : 3.11
Cent OS version : CentOS Linux release 7.7.1908 (Core)

Hostfile entry
[root@DGSLBACA etc]# cat /etc/hosts localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 docker-registry.default.svc docker-registry.default.svc.cluster.local