Error response from daemon: Get "https://192.168.26.56/v2/": dial tcp 192.168.26.56:443: connect: connection refused 解决

 

安装本地仓库,harbor 登录报这个错,

嗯,我的问题是daemon.json、的问题。修改之后没有重启docker

 

复制代码
┌──[root@liruilongs.github.io]-[~/docker]
└─$ docker login 192.168.26.56
Username: admin
Password:
Error: Password Required
┌──[root@liruilongs.github.io]-[~/docker]
└─$ docker login 192.168.26.56
Username: admin
Password:
Error response from daemon: Get "https://192.168.26.56/v2/": dial tcp 192.168.26.56:443: connect: connection refused
┌──[root@liruilongs.github.io]-[~/docker]
└─$ systemctl  daemon-reload
┌──[root@liruilongs.github.io]-[~/docker]
└─$ systemctl restart docker
┌──[root@liruilongs.github.io]-[~/docker]
└─$ docker login 192.168.26.56
Username: admin
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@liruilongs.github.io]-[~/docker]
└─$
┌──[root@liruilongs.github.io]-[~/docker]
└─$ cat /etc/docker/daemon.json
{
  "registry-mirrors": ["https://2tefyfv7.mirror.aliyuncs.com"],
  "insecure-registries": ["192.168.26.56"]
}
┌──[root@liruilongs.github.io]-[~/docker]
└─$
复制代码

 

posted @   山河已无恙  阅读(3045)  评论(0编辑  收藏  举报
编辑推荐:
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
点击右上角即可分享
微信分享提示