安裝本地倉庫,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] └─$