Do zarządzania Harborem używa się narzędzia zwanym docker-compose. W artykule poniżej przedstawię kilka przydatnych poleceń dziki, którym zatrzymamy i uruchomimy Harbora po jego rekonfiguracji rekonfiguracji .
Najważniejsze, żeby wszystkie komendy uruchamiać w katalogu, w którym znajduje się plik docker-compose.yml. Jest to plik znajdujący się samym katalogu instalacyjnym harbora:
root@HARBORPOC01:~/harbor# ls -l
drwxr-xr-x 3 root root 4096 Apr 11 2024 common
-rw-r–r– 1 root root 3643 Apr 8 2024 common.sh
-rw-r–r– 1 root root 6099 Sep 19 00:36 docker-compose.yml
-rw-r–r– 1 root root 15682 Sep 18 14:17 harbor.yml
-rw-r–r– 1 root root 13972 Apr 8 2024 harbor.yml.tmpl
-rwxr-xr-x 1 root root 1975 Apr 8 2024 install.sh
-rw-r–r– 1 root root 11347 Apr 8 2024 LICENSE
-rwxr-xr-x 1 root root 1882 Apr 8 2024 prepare
Zatrzymywanie Harbor
W celu zatrzymać Harbor’a, należy użyć poniższego polecenia:
sudo docker compose stop
W wyniku otrzymamy:
Stopping nginx ... done
Stopping harbor-portal ... done
Stopping harbor-jobservice ... done
Stopping harbor-core ... done
Stopping registry ... done
Stopping redis ... done
Stopping registryctl ... done
Stopping harbor-db ... done
Stopping harbor-log ... done
Restartowanie Harbor
Aby ponownie uruchomić Harbor’a, należy użyć poniższego polecenia:
sudo docker compose start
W wyniku otrzymamy:
Starting log ... done
Starting registry ... done
Starting registryctl ... done
Starting postgresql ... done
Starting core ... done
Starting portal ... done
Starting redis ... done
Starting jobservice ... done
Starting proxy ... done
Rekonfiguracja Harbor
Czasami występuje potrzeba przekonfigurowania działania Harbor, np.: zmiana ścieżki do certyfikatów etc. Aby to wykonać należy zmienić parametry w pliku konfiguracyjnym harbor.yml.
W tym celu należy wykonać poniższe kroki:
- Zatrzymaj Harbor:
sudo docker compose down -v - Zaktualizuj plik
harbor.yml:vim harbor.yml - Dokonaj odpowiednich zmian w pliku harbor.yml
- Uruchom skrypt
prepare, aby wprowadzić zmiany w konfiguracji:sudo ./prepare - Utwórz i uruchom ponownie instancję Harbor:
sudo docker compose up -d
Inne przydatne polecenia
- Usunięcie kontenerów Harbor z zachowaniem danych obrazów i plików bazy danych:
sudo docker compose down -v - Usunięcie bazy danych Harbor oraz danych obrazów przed czystą reinstalacją:
rm -r /data/databaserm -r /data/registryrm -r /data/redis
Dziki wyżej wymienionym poleceniom, można wykonać rekonfigurację Harbor’a w zależności od potrzeb, takich jak dodawanie nowych funkcji czy czysta reinstalacji.
23 responses to “Harbor – rekonfiguracja”
h221y9
u9yy2z
xsshvesjpdfrekjnvupetsxwtpumxx
nhtvfddgzeuzgmtwgdyhdpixhzhfgw
qogpunmorgpwzmemkmslyuufrpjtvo
kshymouyxjhkmiydmxhfisquoelyww
I’ve been diving into music-based games lately, and the creativity in Sprunki Game is next level. The fresh beats and visuals truly elevate the Incredibox experience-love the new character designs!
xuinowmigpvlkeghfswxdjdhpwsdxu
Với định hướng phát triển bền vững, và phương châm “Hài Lòng Bạn Đi, Vui Lòng Bạn Đến“. tải 66b ngày càng khẳng định vị thế của mình trong lĩnh vực cung cấp dịch vụ giải trí số khu vực châu Á.
dydgniqtpnesrnfexvjnoofgnpxiux
fpzftdkdlgzynqwotlujhigxwfhngx
Thinking about trying 8sbet? I gave it a go last weekend. It’s alright, nothing groundbreaking, but a solid option if you’re looking for something new. Might be worth checking the odds. See what you think! 8sbet
Fancy a spin on the slots? I dabbled on 169betcasino last night. Good selection of games and the site layout is pretty easy on the eyes. Wouldn’t hurt to take a look! 169betcasino
For 188bethiphop, it offers a great gaming experience. High levels of customisation and lots of ways to win. 188bethiphop
JL9login sorted me right out. Needed quick access and got it. Site’s easy on the eyes too so that’s a bonus. Definitely saving this one. Get on with jl9login.
Alright, so I’ve been playing lucky47game recently. It’s got a decent selection and I’ve had some pretty good luck, haha. Not bad for a chill gaming session. Try your luck: lucky47game
Downloaded luckywinapk the other day. Setup was easy and the games load fast. If you’re looking for something new on your phone, check it out. Maybe you’ll get lucky like me.. or not! Download it at: luckywinapk
Just tried 5757winlogin, pretty smooth experience overall. Registration was quick and I’m already exploring the games. Check it out here: 5757winlogin
6677betlogin is my new go-to! Easy to navigate and lots of options. Good stuff! Give it a shot: 6677betlogin
76kbetlogin caught my eye recently. Interface is nice and clean, and I found a few games I really enjoy. Worth a look! Find it at: 76kbetlogin
Just wanted to give a shoutout to goo88net. I’ve had some solid wins there. The interface is slick and the payouts are quick. Check it out and see if it’s your lucky place too. Go explore goo88net.
Been spending some time on jlacecom and I’m digging it. The community feels friendly and the offers are pretty sweet. Might be your next go-to spot. Click here jlacecom.
Heard good things about kuwwin so I decided to check it out. Not disappointed! It has a fun vibe, and the bonuses makes it even more worthwhile. See for yourself kuwwin.