Harbor企業級倉庫錯誤總結
1.檢視Harbox狀態時報錯
ERROR:
Can't find a suitable configuration file in this directory or any
parent. Are you in the right directory?
[root@ecsmaster01 ~]#
解決方法:
必需在Harbo安裝目錄執行命令。
[root@ecsmaster01 ~]# cd /data/harbor/
[root@ecsmaster01 harbor]# docker-compose ps
Name Command State Ports
---------------------------------------------------------------------------
harbor-adminserver /harbor/start.sh Up
harbor-db /entrypoint.sh postgres Up 5432/tcp
harbor-jobservice /harbor/start.sh Up
harbor-log /bin/sh -c /usr/local/bin/ ... Up 127.0.0.1:1514->10514/tcp
harbor-ui /harbor/start.sh Up
nginx nginx -g daemon off; Up 0.0.0.0:1243->443/tcp, 0.0.0.0:12443->4443/tcp, 0.0.0.0:1280->80/tcp
redis docker-entrypoint.sh redis ... Up 6379/tcp
registry /entrypoint.sh /etc/regist ... Up 5000/tcp
[root@ecsmaster01 harbor]#
2.harbor許可權問題導致服務啟動不成功
[root@ecsmaster01 harbor]# docker-compose ps
harbor-adminserver /harbor/start.sh
Restarting.sh
harbor-db /entrypoint.sh postgres
Restarting 5432/tcp
harbor-jobservice /harbor/start.sh Up
harbor-log /bin/sh -c /usr/local/bin/ ... Up 127.0.0.1:1514->10514/tcp
harbor-ui /harbor/start.sh Up
nginx nginx -g daemon off; Up 0.0.0.0:1243->443/tcp, 0.0.0.0:12443->4443/tcp, 0.0.0.0:1280->80/tcp
redis docker-entrypoint.sh redis ... Up 6379/tcp
registry /entrypoint.sh /etc/regist ... Up 5000/tcp
[root@ecsmaster01 harbor]# chmod 700 /data/harbor/runtime/database/ --對目錄修改許可權
[root@ecsmaster01 harbor]# docker-compose start --啟動後成功了
3.harbor服務啟動了,客戶端登陸不上(Harbor服務成假死狀態)
[root@ecsnode01 harbor]# docker-compose ps
Name Command State Ports
-----------------------------------------------------------
harbor-adminserver /harbor/start.sh Up
harbor-db /entrypoint.sh postgres Up 5432/tcp
harbor-jobservice /harbor/start.sh Up
harbor-ui /harbor/start.sh Up
nginx nginx -g daemon off; Up 0.0.0.0:1243->443/tcp, 0.0.0.0:12443->4443/tcp, 0.0.0.0:1280->80/tcp
redis docker-entrypoint.sh redis ... Up 6379/tcp
registry /entrypoint.sh /etc/regist ... Up 5000/tcp
[root@ecsnode01 harbor]# docker login harbor.ecs.host:1280
Username (admin):
Password:
Error response from daemon: Get dial tcp 172.31.129.90:12
80: getsockopt: connection refused
[root@ecsnode01 harbor]#
解決方法:
[root@ecsnode01 harbor]# docker-compose down --關閉harbor服務
Stopping nginx ... done
Stopping harbor-jobservice ... done
Stopping harbor-ui ... done
Stopping harbor-adminserver ... done
Stopping registry ... done
Stopping harbor-db ... done
Stopping redis ... done
Removing network harbor_harbor
ERROR: network harbor_harbor has active endpoints
[root@ecsnode01 harbor]# docker ps -a | grep gohar -查詢harbor後臺程式
020c645d19bf goharbor/nginx-photon:v1.6.2 "nginx -g 'daemon off" 2 minutes ago Up 2 minutes (healthy) 0.0.0.0:1280->80/tcp, 0.0.0.0:1243->443/tcp, 0.0.0.0:12443->4443/tcp nginx
7cad5120eb6f goharbor/harbor-jobservice:v1.6.2 "/harbor/start.sh" 2 minutes ago Up 2 minutes harbor-jobservice
b5f690d630ef goharbor/harbor-ui:v1.6.2 "/harbor/start.sh" 2 minutes ago Up 2 minutes (healthy) harbor-ui
dbb16a2b721f goharbor/registry-photon:v2.6.2-v1.6.2 "/entrypoint.sh /etc/" 2 minutes ago Up 2 minutes (healthy) 5000/tcp registry
a2674c617f21 goharbor/harbor-db:v1.6.2 "/entrypoint.sh postg" 2 minutes ago Up 2 minutes (healthy) 5432/tcp harbor-db
14e7eb9cda83 goharbor/harbor-adminserver:v1.6.2 "/harbor/start.sh" 2 minutes ago Up 2 minutes (healthy) harbor-adminserver
d0931ed6c137 goharbor/redis-photon:v1.6.2 "docker-entrypoint.sh" 2 minutes ago Up 2 minutes 6379/tcp redis
065a3c6e17bd goharbor/harbor-log:v1.6.2 "/bin/sh -c /usr/loca" 2 minutes ago Up 2 minutes (healthy) 127.0.0.1:1514->10514/tcp harbor-log
[root@ecsnode01 harbor]# docker rm -f
020c645d19bf
7cad5120eb6f
b5f690d630ef
a2674c617f21
14e7eb9cda83
d0931ed6c137
065a3c6e17bd --刪除程式
Loaded image: goharbor/registry-photon:v2.6.2-v1.6.2
Loaded image: goharbor/notary-server-photon:v0.5.1-v1.6.2
Loaded image: goharbor/clair-photon:v2.0.6-v1.6.2
Loaded image: goharbor/chartmuseum-photon:v0.7.1-v1.6.2
Loaded image: goharbor/harbor-log:v1.6.2
Loaded image: goharbor/harbor-db:v1.6.2
Loaded image: goharbor/harbor-jobservice:v1.6.2
Loaded image: goharbor/nginx-photon:v1.6.2
Loaded image: goharbor/notary-signer-photon:v0.5.1-v1.6.2
Loaded image: goharbor/harbor-migrator:v1.6.2
Loaded image: goharbor/harbor-adminserver:v1.6.2
Loaded image: goharbor/harbor-ui:v1.6.2
Loaded image: goharbor/redis-photon:v1.6.2
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
For more details, please visit .
Username: admin
Password:
Login Succeeded
[root@ecsnode01 harbor]#
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25854343/viewspace-2649778/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- docker的企業級倉庫-harborDocker
- Docker企業級映象倉庫HarborDocker
- Docker倉庫之Harbor企業級映象倉庫的搭建與使用Docker
- 企業級映象倉庫 Harbor 的安裝與配置
- Docker 企業級映象倉庫 Harbor 的搭建與維護Docker
- Harbor 企業級 Docker RegistryDocker
- 可能是最詳細的部署:DockerRegistry企業級私有映象倉庫Harbor管理WEBUIDockerWebUI
- 搭建Harbor 映象倉庫
- 可能是最詳細的部署:Docker Registry企業級私有映象倉庫Harbor管理WEB UIDockerWebUI
- 企業級資料倉儲遷移工藝和方法論總結
- CentOS部署Harbor映象倉庫CentOS
- Harbor倉庫搭建及使用
- Docker搭建Harbor私有倉庫Docker
- Harbor倉庫映象掃描原理
- Docker私有倉庫之Harbor神器Docker
- Docker搭建私有倉庫Registry&HarborDocker
- Docker-------私有倉庫 Harbor 的搭建Docker
- 企業級docker-registry原生映象倉庫高可用部署Docker
- npm錯誤總結NPM
- Docker--harbor私有倉庫部署與管理Docker
- Centos7安裝docker倉庫HarborCentOSDocker
- containerd 配置使用私有映象倉庫 harborAI
- Python Pandas庫 常見使用錯誤總結Python
- Java web錯誤總結~JavaWeb
- TimesTen錯誤總結
- 容器技術之Docker私有映象倉庫harborDocker
- harbor映象倉庫證書過期問題
- Harbor-私有映象倉庫的安裝部署
- 手把手教你搭建Docker私有倉庫HarborDocker
- 下載遠端bundle倉庫有錯誤
- 企業級React專案的個人構建總結React
- 華為雲企業級資料倉儲DWS
- Polar mask錯誤總結
- QT 學習錯誤總結QT
- mysql錯誤解決總結MySql
- Python部分錯誤總結Python
- 容器映象倉庫-Harbor的安裝及踩坑
- 私有化輕量級持續整合部署方案--06-私有映象倉庫-Harbor