harbor安装报错

在部署Harbor时遇到配置文件缺失、SSL证书未设置及日志目录不存在的问题。通过将harbor.yml.tmpl重命名为harbor.yml,设置SSL_cert属性,并创建/var/log/harbor/目录,解决了启动错误。然而,启动过程中依然遇到绑定挂载路径不存在的错误,创建该路径后问题得到解决。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

no config file: /apps/harbor/harbor.yml

没有harbor.yml文件,文件夹下有harbor.yml.tmpl文件,改名字就可以了
[Step 4]: preparing harbor configs ...
prepare base dir is set to /apps/harbor no config file: /apps/harbor/harbor.yml
#没有harbor.yml文件,文件夹下有harbor.yml.tmpl文件,改名字就可以了

cp harbor.yml.tmpl harbor.yml

ERROR:root:Error: The protocol is https but attribute ssl_cert is not set

[Step 4]: preparing harbor configs ...
prepare base dir is set to /apps/harbor
Error happened in config validation...
ERROR:root:Error: The protocol is https but attribute ssl_cert is not set

#协议是https,但没有设置属性ssl_cert文件,注释掉https协议

Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /var/log/harbor/

缺失/var/log/harbor/文件夹,建起了就可以了

[Step 5]: starting Harbor ...
[+] Running 1/1
⠿ Network harbor_harbor Created 0.2s
⠋ Container harbor-log Creating 0.0s
Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /var/log/harbor/

#缺失/var/log/harbor/文件夹,建起了就可以了
mkdir /var/log/harbor/

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值