In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install Harbor image warehouse in Docker". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to install Harbor Image Warehouse in Docker.
1. Download Harbor
Download the offline installation package from github, download link, https://storage.googleapis.com/harbor-releases/release-1.7.0/harbor-offline-installer-v1.7.1.tgz
List-1.1
# decompress [root@localhost data] # tar xf harbor-offline-installer-v1.7.1.tgz2, modify harbor.cfg file
There is a default value for modifying the host.name and harbor_admin_password,hostname of harbor/harbor.cfg to the IP,harbor_admin_password of the virtual machine, but we will use it later when we log in, as follows. You can set hostname to the domain name, such as harbor.com, which is beneficial.
List-2.1
# modify harbor.cfg [root@localhost data] # vi harbor/harbor.cfg... # modify the path to the data store secretkey_path=xxx...# as follows: modified. # 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.#DO NOT comment out this line, modify the value of "hostname" directly, or the installation will fail.hostname = 192.168.33.5.##The initial password of Harbor admin, only works for the first time when Harbor starts. # It has no effect after the first launch of Harbor.#Change the admin password from UI after launching Harbor.harbor_admin_password = xxxx.3, launch Harbor
List-3.1 executes prepare files
[root@localhost data] #. / harbor/prepare
List-3.2 executes install.sh files
[root@localhost data] #. / harbor/install.sh
After accessing http://192.168.33.5 directly with the browser, you can see a login interface with the user name admin and the password the value of harbor_admin_password in List-2.1.
4. How to push the image to Harbor locally
After logging in to Harbor, first create a user, as shown below, "Users"-> "NEW USER", and then pop up an input box asking us to enter a user name, password, etc., which will be used later.
Figure 4.1
At this point, I believe you have a deeper understanding of "Docker how to install Harbor image warehouse". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.