In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
One: background
The two harbor (An and B) in the test environment cannot synchronize the image. The reason for the check is that the harbor container cannot properly resolve the ip address of the peer harbor. As a result, the image synchronization of the harbor added in the repository management whose status is unhealthy,harbor cannot be performed properly.
Second: solution
Add B's ip to each container in A's harbor to resolve to / etc/hosts. Also do a similar operation in B, with the following command:
A) execute the following command on server A to add harbor resolution of B to each container of harbor: `for i in `docker ps | grep harbor | awk'{print $1}'`; do docker exec-it $I bash-c 'echo "domain name of 10.203.121.137 Bharbor" > > / etc/hosts'; domain `b) execute the following command on server B to add harbor resolution of A to each container of harbor: for i in `docker ps | grep harbor | awk' {print $1}'` Do docker exec-it $I bash-c 'echo "10.203.121.60 Aharbor domain name" > > / etc/hosts';done
Three: remarks
The relevant commands have been recorded in / etc/rc.local on the server.
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.