私有Docker仓库login Error response from daemon: Get https://x.x.x.x/v2/: dial tcp x.x.x.x:443: connect: connection refused

时间:2021-08-17 00:33:01

一、登陆私有仓库错误:

docker login --username=evan 192.168.0.203
Error response from daemon: Get https://192.168.0.203/v2/: dial tcp 192.168.0.203:443: connect: connection refused

解决办法:

添加 insecure-registries

vi /etc/docker/daemon.json
"insecure-registries": ["192.168.2.203"] (私有仓库地址)

  systemctl daemon-reload
  systemctl restart docker