Network harbor_harbor Error

[+] Running 1/1
 ✘ Network harbor_harbor  Error                                                                                                                                                      0.1s 
failed to create network harbor_harbor: Error response from daemon: Failed to program FILTER chain: iptables failed: iptables --wait -I FORWARD -o br-797cfe85e1ef -j DOCKER: iptables v1.4.21: Couldn't load target `DOCKER':No such file or directory

Try `iptables -h' or 'iptables --help' for more information.
 (exit status 2)

pkill docker
 
iptables -t nat -F
 
ifconfig docker0 down
 
brctl delbr docker0
 
docker -d
 
systmctl restart docker

IP SANs

  Warning  Failed     5s (x2 over 20s)  kubelet            
Failed to pull image "192.168.65.101/library/pharmacy_test_02@sha256:cc368b6d4aaefcf6e1013ab90565cb2e99ae047791c963f96361c159e14fcecf": 
failed to pull and unpack image "192.168.65.101/library/pharmacy_test_02@sha256:cc368b6d4aaefcf6e1013ab90565cb2e99ae047791c963f96361c159e14fcecf": 
failed to resolve reference "192.168.65.101/library/pharmacy_test_02@sha256:cc368b6d4aaefcf6e1013ab90565cb2e99ae047791c963f96361c159e14fcecf": 
failed to do request: Head "https://192.168.65.101/v2/library/pharmacy_test_02/manifests/sha256:cc368b6d4aaefcf6e1013ab90565cb2e99ae047791c963f96361c159e14fcecf": tls: 
failed to verify certificate: x509: cannot validate certificate for 192.168.65.101 because it doesn't contain any IP SANs


								2023.11.28  山工院

这个是安装的Harbor的大概流程,如果要使用https的话就要重新生成证书,这个再Harbor官方有。

https://zhuanlan.zhihu.com/p/638376379


配置harbor的一个https访问
https://goharbor.io/docs/2.6.0/install-config/configure-yml-file/

在使用Harbor时候,hostname要用部署的IP地址,有时候使用hostname,在pullpush时候就会在镜像名前加"docker.io"

一般来讲harbor在使用的时候多数再文件daemon.json和Harbor.yaml文件

daemon.json——这个配置私有地址
Harbor.yaml——这个多数配证书的配置、http/https、hostname


如果k8s要使用私有仓库的话,按照官方配置

https://kubernetes.io/zh-cn/docs/tasks/configure-pod-container/pull-image-private-registry/


如若使用cri等命令的话,遇到错误可参考

https://zhuanlan.zhihu.com/p/391805710



Logo

新一代开源开发者平台 GitCode,通过集成代码托管服务、代码仓库以及可信赖的开源组件库,让开发者可以在云端进行代码托管和开发。旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐