Why can’t Harbor installed in HTTP plain text protocol log in from the client?

  docker, question

Install Harbor on a host using the default HTTP protocol.
IP is192.168.33.10.
You can log in from the command line on this machine:

sudo docker login 192.168.33.10

Can also be accessed from the browser:
http://192.168.33.10
But from other clients (Mac,Docker installed like thisWhen logging in, the following error occurred:

docker login 192.168.33.10
 Username: user1
 Password: (my_password)
 Error response from daemon: Get https://192.168.33.10/v2/: dial tcp 192.168.33.10:443: getsockopt: connection refused

The instructions can be seen in the Harbor installation documentation:
https://github.com/vmware/har …

IMPORTANT: The default installation of Harbor uses HTTP – as such, you will need to add the option –insecure-registry to your client’s Docker daemon and restart the Docker service.

Both the host and the client in Harbor set up this file./etc/docker/daemon.json

{ "insecure-registries":["192.168.33.10"] }

And restart docker, or not.
If Harbor is not installed using HTTPS protocol now, what method can be used to log in and access normally from the client?

Solution

No setup is required at the client/etc/docker/daemon.json, Mac is not to do so, but:
图片描述

Apply and restart