Inside the garden it has already been written. Well written, I am here to record only problem I encountered
Harbor dependence:
1:docker
2:docker-compose
Installation will not say how.
Then install Harbor
github:https://github.com/goharbor/harbor/releases
download:
wget https://storage.googleapis.com/harbor-releases/release-1.9.0/harbor-offline-installer-v1.9.1-rc1.tgz
Decompression:
tar xf harbor-offline-installer-v1.7.0.tgz
Thus there is a folder in the harbor or cd cd ~
Enter the harbor, there is a harbor.cfg file
Configure Sources Online
Harbor of the Configuration File ## # is provided to access the address hostname, IP may be used, the domain name, not set to 127. 0.0 .1 or localhost hostname = 172.33 . 16.1 # manual modification according to the actual situation # access protocol, the default is http, also You may be provided https, if set https, it nginx ssl need to set ON ui_url_protocol = HTTP # MySQL database root user default password root123, the actual use of the modified db_password = root123 max_job_workers = . 3 customize_crt = ON ssl_cert = / Data / CERT / server.crt ssl_cert_key = / Data / CERT / server.key- secretkey_path = / Data admiral_url =NA # mail settings, reset the password used when sending messages email_identity = email_server = smtp.mydomain.com email_server_port = 25 email_username = [email protected] email_password = ABC EMAIL_FROM = ADMIN <[email protected]> email_ssl = to false # start Harbor after the administrator UI login password, the default is Harbor12345 harbor_admin_password = Harbor12345 # authentication, here supports multiple authentication methods, such as LADP, this storage, database authentication. The default is db_auth, mysql database authentication auth_mode = db_auth configuration items when # LDAP authentication #ldap_url = LDAPS: //ldap.mydomain.com #ldap_searchdn searchUser = UID =, OU = people, DC = mydomain, DC = COM #ldap_search_pwd = password #ldap_basedn = OU = people, DC = mydomain, DC = COM #ldap_filter = (objectClass = Person) # the LDAP_UID = uid #ldap_scope = 3 #ldap_timeout = 5 # is turned to self-register self_registration = ON # Token effective time, 30 minutes by default token_expiration = 30 # users to create access control project, the default is everyone (everyone) can also be set to adminonly (only administrator) project_creation_restriction = the Everyone verify_remote_cert = on
After configuration in the current directory, enter: ./install.sh
Or docker-compose up -d, because you will find that you have a docker-compose documents,
You can also go to modify
Then there is error 80 ports are occupied, because nginx default port 80
Enter the command port 80 to see which program is being used: netstat -lnp | grep 80
The original is jexus occupied. Then stop
Once again, the success of the ./install.sh
Attempts to access:
The user name is: admin
The password is the password for the configuration file which, by default Harbor12345
If you want to modify words. First landing, and then modify the ui interface
Great God of reference articles:
https://www.cnblogs.com/panwenbin-logs/p/10218099.html
https://www.cnblogs.com/kevingrace/p/6547616.html