<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>镜像仓库 on 维克的博客</title><link>https://blogs.wuvikr.top/tags/%E9%95%9C%E5%83%8F%E4%BB%93%E5%BA%93/</link><description>Recent content in 镜像仓库 on 维克的博客</description><generator>Hugo</generator><language>en</language><lastBuildDate>Sat, 03 Oct 2026 11:32:44 +0800</lastBuildDate><atom:link href="https://blogs.wuvikr.top/tags/%E9%95%9C%E5%83%8F%E4%BB%93%E5%BA%93/index.xml" rel="self" type="application/rss+xml"/><item><title>Harbor 私有镜像仓库安装部署和最佳实践</title><link>https://blogs.wuvikr.top/posts/harbor%E7%A7%81%E6%9C%89%E9%95%9C%E5%83%8F%E4%BB%93%E5%BA%93%E5%AE%89%E8%A3%85%E9%83%A8%E7%BD%B2%E5%92%8C%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5/</link><pubDate>Sat, 03 Oct 2026 11:32:44 +0800</pubDate><guid>https://blogs.wuvikr.top/posts/harbor%E7%A7%81%E6%9C%89%E9%95%9C%E5%83%8F%E4%BB%93%E5%BA%93%E5%AE%89%E8%A3%85%E9%83%A8%E7%BD%B2%E5%92%8C%E6%9C%80%E4%BD%B3%E5%AE%9E%E8%B7%B5/</guid><description>&lt;h1 id="1-简介">1. 简介&lt;/h1>
&lt;p>Harbor 是 CNCF 托管、VMware 开源的企业级容器镜像仓库，基于 Docker Registry 二次开发。除基础镜像存储能力外，还提供 Web UI、细粒度RBAC权限、镜像漏洞扫描、垃圾回收、镜像复制同步、审计日志等企业级能力，是 Kubernetes 集群离线部署、容器镜像统一管理的核心组件。&lt;/p>
&lt;p>&lt;strong>适用场景&lt;/strong>：企业内网私有镜像托管、Kubespray 离线集群镜像分发、CI/CD流水线镜像仓库。&lt;/p>
&lt;p>&lt;strong>官方参考文档&lt;/strong>：&lt;/p>
&lt;ul>
&lt;li>Harbor 官方安装指南：&lt;a href="https://goharbor.io/docs/2.8.0/install-config/">https://goharbor.io/docs/2.8.0/install-config/&lt;/a>&lt;/li>
&lt;li>Harbor HTTPS 证书配置文档：&lt;a href="https://goharbor.io/docs/main/install-config/configure-https/">https://goharbor.io/docs/main/install-config/configure-https/&lt;/a>&lt;/li>
&lt;li>Harbor 版本生命周期与版本策略：&lt;a href="https://goharbor.io/docs/main/install-config/versioning/">https://goharbor.io/docs/main/install-config/versioning/&lt;/a>&lt;/li>
&lt;li>Harbor 备份恢复官方文档：&lt;a href="https://goharbor.io/docs/main/administration/backup-restore/">https://goharbor.io/docs/main/administration/backup-restore/&lt;/a>&lt;/li>
&lt;li>Harbor 生产环境最佳实践：&lt;a href="https://www.cncf.io/blog/2026/02/24/making-harbor-production-ready-essential-considerations-for-deployment/">https://www.cncf.io/blog/2026/02/24/making-harbor-production-ready-essential-considerations-for-deployment/&lt;/a>&lt;/li>
&lt;li>Harbor 官方 Trivy 文档：https://goharbor.io/docs/2.14.0/scan/&lt;/li>
&lt;li>Trivy 官方文档：&lt;a href="https://aquasecurity.github.io/trivy/">https://aquasecurity.github.io/trivy/&lt;/a>&lt;/li>
&lt;/ul>
&lt;h1 id="2-前置环境准备">2. 前置环境准备&lt;/h1>
&lt;h2 id="21-harbor版本选型指南">2.1 Harbor版本选型指南&lt;/h2>
&lt;p>当前最新版已经到 v2.15.x，很多人会直接选用最新版，但&lt;strong>不建议生产直接上最新大版本&lt;/strong>。&lt;/p>
&lt;p>Harbor版本命名规则：&lt;code>主版本.次版本.补丁号&lt;/code>，例如 &lt;code>2.10.2&lt;/code>、&lt;code>2.15.0&lt;/code>&lt;/p>
&lt;ul>
&lt;li>&lt;strong>奇数小版本（2.11、2.13、2.15）&lt;/strong>：新特性版本，引入新功能、重构模块；bug相对多，适合测试体验，&lt;strong>不推荐生产直接使用&lt;/strong>。&lt;/li>
&lt;li>&lt;strong>偶数小版本（2.10、2.12、2.14）&lt;/strong>：长期维护稳定分支，重点修复漏洞，新增功能保守，&lt;strong>生产首选&lt;/strong>。&lt;/li>
&lt;/ul>
&lt;p>举例：&lt;/p>
&lt;ul>
&lt;li>&lt;code>v2.15.x&lt;/code>：新特性版，适合尝鲜、学习测试；&lt;/li>
&lt;li>&lt;code>v2.14.x&lt;/code>：当前最新稳定偶数版；&lt;/li>
&lt;li>&lt;code>v2.10.x&lt;/code>：久经大规模生产验证，bug少，社区问题资料极多，如果不需要新版本的一些新特性的话，推荐使用。&lt;/li>
&lt;/ul>
&lt;p>&lt;strong>企业生产环境&lt;/strong>：优先选择&lt;strong>偶数LTS稳定分支&lt;/strong>，发布至少3个月以上，积累足够补丁。不要选用刚发布的 &lt;code>.0&lt;/code> 首版（例如 &lt;code>2.15.0&lt;/code>），这类版本会存在较多未发现的bug。&lt;/p>
&lt;h2 id="22-基础依赖">2.2 基础依赖&lt;/h2>
&lt;p>Harbor 基于 Docker Compose V2 编排运行，提前准备依赖环境：&lt;/p>
&lt;ul>
&lt;li>Docker Engine：20.10+&lt;/li>
&lt;li>Docker Compose V2&lt;/li>
&lt;li>系统架构：amd64 / arm64 均可支持（OrbStack、VMware虚拟机均可正常运行）&lt;/li>
&lt;li>硬件资源：测试环境≥2核4G；生产环境≥4核8G，推荐SSD存储提升镜像读写性能&lt;/li>
&lt;/ul>
&lt;h1 id="3-harbor-离线安装流程">3. Harbor 离线安装流程&lt;/h1>
&lt;p>离线包稳定性高于在线安装，内网、离线集群优先选用。本文部署以&lt;code>v2.14.4&lt;/code>版本为例。&lt;/p></description></item></channel></rss>