In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
What this article shares with you is about how to deploy VMware Harbor. The editor thinks it is very practical, so I share it with you to learn. I hope you can get something after reading this article.
Learn how to deploy harbor.
System
OS:Ubuntu 16.04.3 LTS
Kernel:ubuntu16.04-24.4.0-87-generic
Download docker-ce I https://download.docker.com/linux/ubuntu/dists/xenial/pool/stable/amd64/docker-ce_18.03.0~ce-0~ubuntu_amd64.deb with her to install docker-cedpkg-I docker-ce_18.03.0_ce-0_ubuntu_amd64.deb to check docker-cedocker info
Depending on apt-get install python2.7 python-minimaldocker-compose installation, install curl-L https://github.com/docker/compose/releases/download/1.19.0/docker-compose-`uname-s`-`uname-m`-o / usr/local/bin/docker-composechmod + x / usr/local/bin/docker-compose
Ps: do not install apt-get install docker-compose. The docker-compose version in the default repository is too low.
Docker-compose auto-complete plug install curl-L https://raw.githubusercontent.com/docker/compose/1.19.0/contrib/completion/bash/docker-compose-o / etc/bash_completion.d/docker-composeharbor offline package download cd / opt/programswget https://storage.googleapis.com/harbor-releases/release-1.5.0/harbor-offline-installer-v1.5.1.tgz========================= download = tar zxvf harbor-offline-installer-v1.5. 1.tgz working directory settings / opt/programs/harbor adjust harbor.cfg configuration
The file is in / opt/programs/harbor/harbor.cfg
_ version = 1.5.0hostname = 192.168.1.6ui_url_protocol = httpmax_job_workers = 5customize_crt = onssl_cert = / data/cert/server.crtssl_cert_key = / data/cert/server.keysecretkey_path = / dataadmiral_url = NAlog_rotate_count = 5log_rotate_size = 200Mhttp_proxy = https_proxy = no_proxy = 127.0.0.1172.31.68.243 Uiemail_identity = email_server = smtp.mydomain.comemail_server_port = 25email_username = sample_admin@mydomain.comemail_password = abcemail_from = admin email_ssl = falseemail_insecure = falseharbor_admin_password = Harbor12345auth_mode = db_authldap_url = ldaps://ldap.mydomain.comldap_basedn = ou=people,dc=mydomain,dc=comldap_uid = uid ldap_scope = 2 ldap_timeout = 5ldap_verify_cert = trueldap_group_basedn = ou=group,dc=mydomain Dc=comldap_group_filter = objectclass=groupldap_group_gid = cnldap_group_scope = 2self_registration = ontoken_expiration = 30project_creation_restriction = everyonedb_host = mysqldb_password = root123db_port = 3306db_user = rootredis_url = redis:6379clair_db_host = postgresclair_db_password = passwordclair_db_port = 5432clair_db_username = postgresclair_db = postgresuaa_endpoint = uaa.mydomain.orguaa_clientid = iduaa_clientsecret = secretuaa_verify_cert = trueuaa_ca_cert = / path/to/ca.pemregistry_storage _ provider_name = filesystemregistry_storage_provider_config = install harbor./install.sh
View harbor imagedocker image ls
View harbor containerdocker container ls
Log in to harbor http://192.168.1.6
Ps: the default username password is admin/Harbor12345
Management interface
Ps: how to use it will not be described in detail. Let's explain how to use the push image, and then change the ubuntu machine to execute the following command (ubuntu16.04-2).
Adjust docker default configuration # / etc/docker/daemon.json {"registry-mirrors": ["http://aa2fd190.m.daocloud.io"]," "insecure-registries": ["http://172.31.68.241"]} adjust docker startup configuration file # / lib/systemd/system/docker.service# adjust ExecStart entry under service module [Service] Type=notifyExecStart=/usr/bin/dockerd-H tcp://0.0.0.0:2375-H unix:///var/run/docker.sock configuration effective systemctl daemon-reloadsystemctl restart docker.service View docker status systemctl status docker.service
CLI login harbordocker login 192.168.1.6root@ubuntu16.04-2:~#docker login 192.168.1.6Username (admin): adminPassword: Login Succeededroot@ubuntu16.04-2:~#image hit tag
Check the image on the current host first
Hit tag for hello-world
Ps: change the ip in it to 192.168.1.6 (there is really no picture)
Docker tag hello-world:latest 172.31.68.241/library/hello-world:latest
Push Mirror docker push 172.31.68.241/library/hello-world:latest
Pull image adjustment docker configuration file # / etc/default/docker# adjustment DOCKER_OPTS is as follows: DOCKER_OPTS= "--registry-mirror= http://172.31.68.241-- insecure-registry 172.31.68.241" restart dockersystemctl daemon-reloadsystemctl restart docker.servicepull image docker pull 172.31.68.241/library/hello-world
The above is how to deploy VMware Harbor, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.