Error response from daemon: Get “******“connect: connection refused

阅读 146

2022-04-24

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 ~]# 

精彩评论(0)

0 0 举报