docker login时被拒
[root@localhost ~]# docker login 172.18.1.250
Username: caixin
Password: 
Error response from daemon: Get "https://172.18.1.250/v2/": dial tcp 172.18.1.250:443: connect: connection refused
[root@localhost ~]#
 

 解决方法:
[root@localhost ~]# vim /etc/docker/daemon.json 
 
增加仓库地址,我这里的来已有一个,再增加一个

 重启docker即可
                                                                                                                                                                                               
[root@localhost ~]# systemctl restart docker
[root@localhost ~]# docker login 172.18.1.250
Username: caixin
Password: 
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
[root@localhost ~]# 










