Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Harbor Warehouse installation important Node Information

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

1. Creation of ca certificate required by https

1056 mkdir-p / data/cert & & cd / data/cert

1057 openssl genrsa-out ca.key 2048

1058 openssl req-x509-new-nodes-key ca.key-days 10000-out ca.crt-subj "/ CN=Harbor-ca"

1059 ll

1060 openssl req-newkey rsa:4096-nodes-sha256-keyout server.key-out server.csr

1061 ll

1062 echo subjectAltName = IP:192.168.0.169 > extfile.cnf

1063 cat extfile.cnf

1064 openssl x509-req-in server.csr-CA ca.crt-CAkey ca.key-CAcreateserial-days-extfile extfile.cnf-out server.crt

Second, x509: certificate signed by unknown authority reported an error when logging in

[root@169_test harbor] # cat / etc/docker/daemon.json

{

"insecure-registries": ["192.168.0.169"]

}

[root@169_test harbor] #

III. Harbor.yml configuration project

[root@169_test harbor] # cat harbor.yml | grep-v "#"

Hostname: 192.168.0.169

Https:

Port: 443

Certificate: / data/cert/server.crt

Private_key: / data/cert/server.key

4. Goharbor/nginx-photon:v1.8.0 failed to start

Error response from daemon: configured logging driver does not support reading

Pay attention to whether the following options of docker-compose.yml correspond

[root@169_test harbor] # cat docker-compose.yml | grep cert

Source: / data/cert/server.key

Target: / etc/cert/server.key

Source: / data/cert/server.crt

Target: / etc/cert/server.crt

[root@169_test harbor] #

5. The mytest project has not been created, and the user does not have the permission to operate the project, resulting in no permission to report.

[root@169_test ~] # docker login 192.168.0.169

Authenticating with existing credentials...

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@169_test ~] # docker push 192.168.0.169/mytest/mariadb10.3

The push refers to repository [192.168.0.169/mytest/mariadb10.3]

9fe1346a8e46: Preparing

44b71d929e12: Preparing

23402936133c: Preparing

D4149884a4c1: Preparing

C80bf439605a: Preparing

21e1e894139d: Waiting

D69483a6face: Waiting

Denied: requested access to the resource is denied

Note:

Software version: harbor.v1.8.0.tar.gz

Remarks

Upload command:

Log in to docker login 192.168.0.169

View image docker images

Tag the image docker tag mytest/mariadb10.3:latest 192.168.0.169/mytest/mariadb10.3:latest

View image information docker images

Upload the image. Note that there must be mytest project docker push 192.168.0.169/mytest/mariadb10.3.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report