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

created at 10-07-2021 views: 35

Install the local warehouse, harbor login and report this error,

Well, my problem is with daemon.json. Docker was not restarted after modification

┌──[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]
└─$
created at:10-07-2021
edited at: 10-07-2021: