Prerequisites have docker installed
Created by registry mirror
docker run --net="host" --name cg-registry -d -p 5000:5000 -v /home/docker/mnt/registry:/var/lib/registry registry:2
Created by harbor mirror
Install docker-compose
1. Install pip
$wget https://bootstrap.pypa.io/get-pip.py
$python get-pip.py
2. Install docker-compose
$pip install docker-compose
3. Check
$docker-compose -v
Download the harbor installation package
Download the installation package: http://172.16.101.43/harbor.v1.5.1.tar.gz
tar xvf harbor.v1.5.1.tar.gz
Configure harbor.conf
Just modify the hostname.
# hostname设置访问地址,可以使用ip、域名,不可以设置为127.0.0.1或localhost
hostname = 10.50.180.104
启动 Harbor
After modifying the configuration file, execute it in the current directory./install.sh命令。
This command will download the dependent docker images through the current docker-compose.yml file and start them in turn.
Log in to Web Harbor
http://172.16.101.49/harbor/ User password: platform/111111aA