zoukankan      html  css  js  c++  java
  • 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]
    └─$
    加油,愿被这世界温柔以待 ^_^
  • 相关阅读:
    CentOS下crond定时任务详细介绍
    js随机从数组中取出几个元素
    js复制内容加版权声明代码
    crond不执行原因分析
    2015年最全的移动WEB前端UI框架
    聊聊前端排序的那些事
    Linux下修改Mysql的用户(root)的密码
    SIPp常用脚本之三:UAC
    SIPp常用脚本之二:UAS
    SIPp常用脚本之一:register注册
  • 原文地址:https://www.cnblogs.com/liruilong/p/15371941.html
Copyright © 2011-2022 走看看