Harbor1.10v installation and configuration

harbor1.10 installation and configuration

Installation conditions

Docker engine Version 17.06.0-ce+
Docker Compose Version 1.18.0 or higher

Download the installation package

Go to Github/harbor to download

Two installation methods

  • Online installer
  • Offline installer

Here I use online installation
to download and decompress the online installation package
Insert picture description here

tar xvf harbor-online-installer-v1.10.2.tgz

Modify the configuration harbor.yml file

hostname: 服务器IP

Because the test uses the HTTP protocol, the HTTPS configuration is annotated. The
production environment must use HTTPS, and HTTPS requires additional configuration.
Insert picture description here
Harbor system administrator password configuration, account admin, the default password is Harbor12345
Insert picture description here
DB configuration, the
default password is root123
Insert picture description here

Run the installer script

sudo ./install.sh

Use a browser to open the server address,
Insert picture description here
enter the account password to enter,
create a new project
Insert picture description here
, and push after logging in

docker login 服务器ip

Insert picture description here

  • Because the HTTP protocol is used, it needs to be configured on the client side
  • Modify /etc/docker/daemon.jsonfile
  • Join"insecure-registries" : 服务器ip
  • Restart the Docker service after modification systemctl restart docker

Pull command
Insert picture description here
reference:
https://goharbor.io/docs/1.10/install-config/

Guess you like

Origin blog.csdn.net/qq_39906884/article/details/105877847