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
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.
Harbor system administrator password configuration, account admin, the default password is Harbor12345
DB configuration, the
default password is root123
Run the installer script
sudo ./install.sh
Use a browser to open the server address,
enter the account password to enter,
create a new project
, and push after logging in
docker login 服务器ip
- Because the HTTP protocol is used, it needs to be configured on the client side
- Modify
/etc/docker/daemon.json
file - Join
"insecure-registries" : 服务器ip
- Restart the Docker service after modification
systemctl restart docker
Pull command
reference:
https://goharbor.io/docs/1.10/install-config/