CPU => 最小 2CPU/4CPU(首选) Mem => 最小 4GB/8GB(首选) Disk => 最小 40GB/160G(首选)
vim harbor/harbor.cfg
修改文件相关配置。harbour.cfg
。 然后运行 prepare
脚本来填充配置,最后重新创建并启动Harbor的实例:harbor
默认端口为 80
,而大多数时候是不希望使用 80
端口的,修改端口方法如下common/templates/registry/config.yml
文件Error response from daemon: Get https://192.168.188.222:8070/v1/users/: http: server gave HTTP response to HTTPS client
docker
默认使用的是 https
协议,而搭建的 Harbor
是 http
提供服务的,所以要配置可信任。PS:如果 Harbor
是 https
的就不会报该错误。--insecure-registry=docker.xxx.com
强制 docker login
走 http
的 80
端口,就可以正常 push
了