(七)VMware Harbor 问题:Get https://192.168.3.135:8088/v2/: http:server gave HTTP response to HTTPS client

(A) Description of the problem

When landing, error

docker login --username=xxx 192.168.3.1358088
Get https://192.168.3.135:8088/v2/: http:server gave HTTP response to HTTPS client

(B) Solution

Step 1: Modify /etc/docker/daemon.json

In the "/ etc / docker /" directory, create a "daemon.json" file (if any direct coverage). Written in the file

{ "insecure-registries":["192.168.3.135:8088"] }

Alternatively, execution

echo '{ "insecure-registries":["192.168.3.135:8088"] }' > /etc/docker/daemon.json

Step 2: Restart docker Service

systemctl daemon-reload
systemctl restart docker

(C) Test Results

Look to see if a docker ps harbor container are up state. No, then perform docker-compose up -d

It can re-login.

 

Guess you like

Origin www.cnblogs.com/shix0909/p/11083718.html