1. Preparation
192.168.65.143 harbor centos7
System kernel upgrade
Check the installation docker-ce themselves in front of the installation rancher
[root@harbor opt]# wget https://storage.googleapis.com/harbor-releases/release-1.8.0/harbor-offline-installer-v1.8.1.tgz
[root@harbor opt]# tar zxf harbor-offline-installer-v1.8.1.tgz
Modify the configuration file
[root@harbor harbor]# vim harbor.yml # The IP address or hostname to access admin UI and registry service. # DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients. hostname: 192.168.65.143 #修改主机名字 。。。。。。。。。。。。。。。 # Remember Change the admin password from UI after launching Harbor. harbor_admin_password: Harbor12345 #缺省登录密码
installation
[root@harbor harbor]# ./install.sh
Will start in the local container harbor after a successful installation
[root@harbor harbor]# docker ps -a |grep harbor 9882fd07f39a goharbor/nginx-photon:v1.8.1 "nginx -g 'daemon of…" 29 hours ago Up 29 hours (healthy) 0.0.0.0:80->80/tcp nginx 7648a5ea19d6 goharbor/harbor-portal:v1.8.1 "nginx -g 'daemon of…" 29 hours ago Up 29 hours (healthy) 80/tcp harbor-portal 98b483cd804a goharbor/harbor-jobservice:v1.8.1 "/harbor/start.sh" 29 hours ago Up 29 hours harbor-jobservice 27f6ba0b66a9 goharbor/harbor-core:v1.8.1 "/harbor/start.sh" 29 hours ago Up 29 hours (healthy) harbor-core 97eb5bac037a goharbor/harbor-db:v1.8.1 "/entrypoint.sh post…" 29 hours ago Up 29 hours (healthy) 5432/tcp harbor-db ce0e17136366 goharbor/registry-photon:v2.7.1-patch-2819-v1.8.1 "/entrypoint.sh /etc…" 29 hours ago Up 29 hours (healthy) 5000/tcp registry 1d155a8f9be7 goharbor/redis-photon:v1.8.1 "docker-entrypoint.s…" 29 hours ago Up 29 hours 6379/tcp redis 0434faf4e322 goharbor/harbor-registryctl:v1.8.1 "/harbor/start.sh" 29 hours ago Up 29 hours (healthy) registryctl fd400f94e1cf goharbor/harbor-log:v1.8.1 "/bin/sh -c /usr/loc…" 29 hours ago Up 29 hours (healthy) 127.0.0.1:1514->10514/tcp harbor-log
log in
http://192.168.65.143
Log on to the local harbor when prompted connect refuse, where you can modify or change / etc / sysconfig / docker
vim /usr/lib/systemd/system/docker.service ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock --insecure-registry 192.168.65.143
OPTIONS='--selinux-enabled --log-driver=journald --signature-verification=false --insecure-registry 192.168.65.143'
Modify good systemctl restart docker
In which the mirror playing tag when it is best to bring some of the projects were so good difference, but the project directory names in advance built on the harbor, as follows:
docker tag test: v1 192.168.65.143/test/test:v1 # test which is the project name
I packed harbor