{"id":65538,"date":"2026-01-25T08:48:21","date_gmt":"2026-01-25T00:48:21","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/65538.html"},"modified":"2026-01-25T08:48:21","modified_gmt":"2026-01-25T00:48:21","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8%e6%9c%8d%e5%8a%a1%e5%99%a8-ubuntu-22-04-%e4%b8%8a%e6%9e%84%e5%bb%ba-harbor-%e7%a7%81%e6%9c%89%e9%95%9c%e5%83%8f%e4%bb%93%e5%ba%93%e4%b8%8e%e9%95%9c%e5%83%8f%e7%94%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/65538.html","title":{"rendered":"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u6784\u5efa Harbor \u79c1\u6709\u955c\u50cf\u4ed3\u5e93\u4e0e\u955c\u50cf\u751f\u547d\u5468\u671f\u7ba1\u7406\u65b9\u6848\u6559\u7a0b"},"content":{"rendered":"<p>\u5728\u73b0\u4ee3\u7684\u5f00\u53d1\u4e0e\u8fd0\u7ef4\u73af\u5883\u4e2d&#xff0c;\u955c\u50cf\u4ed3\u5e93\u7684\u6784\u5efa\u548c\u7ba1\u7406\u662f\u975e\u5e38\u5173\u952e\u7684\u3002\u968f\u7740\u5bb9\u5668\u5316\u6280\u672f\u7684\u5e7f\u6cdb\u5e94\u7528&#xff0c;Docker \u955c\u50cf\u7684\u7ba1\u7406\u53d8\u5f97\u5c24\u4e3a\u91cd\u8981\u3002Harbor \u662f\u4e00\u4e2a\u9ad8\u6548\u7684\u4f01\u4e1a\u7ea7\u79c1\u6709\u955c\u50cf\u4ed3\u5e93&#xff0c;\u63d0\u4f9b\u4e86\u955c\u50cf\u7684\u5b58\u50a8\u3001\u7ba1\u7406\u4ee5\u53ca\u5b89\u5168\u7b56\u7565\u7b49\u529f\u80fd&#xff0c;\u5e7f\u6cdb\u5e94\u7528\u4e8e\u6301\u7eed\u96c6\u6210\u4e0e\u90e8\u7f72\u7684\u73af\u5883\u4e2d\u3002A5\u6570\u636e\u5728\u672c\u6559\u7a0b\u4e2d&#xff0c;\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728 Ubuntu 22.04 \u670d\u52a1\u5668\u4e0a\u6784\u5efa Harbor \u79c1\u6709\u955c\u50cf\u4ed3\u5e93&#xff0c;\u5e76\u5b9e\u73b0\u5b8c\u6574\u7684\u955c\u50cf\u751f\u547d\u5468\u671f\u7ba1\u7406\u65b9\u6848\u3002<\/p>\n<h3>1. \u73af\u5883\u51c6\u5907\u4e0e\u786c\u4ef6\u914d\u7f6e<\/h3>\n<h4>1.1 \u786c\u4ef6\u914d\u7f6e<\/h4>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d&#xff0c;\u6211\u4eec\u4f7f\u7528\u7684\u662f\u4e00\u53f0\u57fa\u4e8e Ubuntu 22.04 \u7684\u9999\u6e2f\u670d\u52a1\u5668www.a5idc.com&#xff0c;\u5176\u786c\u4ef6\u914d\u7f6e\u5982\u4e0b&#xff1a;<\/p>\n<table>\n<tr>\u914d\u7f6e\u9879\u53c2\u6570<\/tr>\n<tbody>\n<tr>\n<td>CPU<\/td>\n<td>Intel Xeon E5-2630 v4&#xff08;8\u683816\u7ebf\u7a0b&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u5185\u5b58<\/td>\n<td>32GB DDR4 3200MHz<\/td>\n<\/tr>\n<tr>\n<td>\u5b58\u50a8<\/td>\n<td>2 x 1TB NVMe SSD&#xff08;RAID 1&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u7f51\u7edc\u5e26\u5bbd<\/td>\n<td>10Gbps BGP \u8fde\u63a5<\/td>\n<\/tr>\n<tr>\n<td>\u64cd\u4f5c\u7cfb\u7edf<\/td>\n<td>Ubuntu 22.04 LTS<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>1.2 \u8f6f\u4ef6\u914d\u7f6e<\/h4>\n<ul>\n<li>Docker&#xff1a;Harbor \u6784\u5efa\u548c\u8fd0\u884c\u4f9d\u8d56 Docker \u5bb9\u5668&#xff0c;\u56e0\u6b64\u9700\u8981\u5728\u7cfb\u7edf\u4e0a\u5b89\u88c5 Docker\u3002<\/li>\n<li>Docker Compose&#xff1a;\u7528\u4e8e\u5b9a\u4e49\u548c\u8fd0\u884c\u591a\u5bb9\u5668\u7684 Docker \u5e94\u7528\u3002<\/li>\n<li>Harbor&#xff1a;\u5f00\u6e90\u7684\u4f01\u4e1a\u7ea7\u79c1\u6709\u955c\u50cf\u4ed3\u5e93\u3002<\/li>\n<\/ul>\n<p>\u786e\u4fdd\u670d\u52a1\u5668\u5177\u6709\u7a33\u5b9a\u7684\u4e92\u8054\u7f51\u8fde\u63a5&#xff0c;\u4ee5\u4fbf\u4e0b\u8f7d\u6240\u9700\u7684 Docker \u955c\u50cf\u548c Harbor \u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<h3>2. \u5b89\u88c5 Docker \u548c Docker Compose<\/h3>\n<p>\u5728 Ubuntu 22.04 \u4e0a\u5b89\u88c5 Docker \u548c Docker Compose&#xff1a;<\/p>\n<h4>2.1 \u5b89\u88c5 Docker<\/h4>\n<p><span class=\"token comment\"># \u66f4\u65b0 apt \u5305\u7d22\u5f15<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> update<\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5\u5fc5\u8981\u7684\u4f9d\u8d56<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> apt-transport-https ca-certificates <span class=\"token function\">curl<\/span> software-properties-common<\/p>\n<p><span class=\"token comment\"># \u6dfb\u52a0 Docker \u7684\u5b98\u65b9 GPG \u5bc6\u94a5<\/span><br \/>\n<span class=\"token function\">curl<\/span> -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg <span class=\"token operator\">|<\/span> <span class=\"token function\">sudo<\/span> apt-key <span class=\"token function\">add<\/span> &#8211;<\/p>\n<p><span class=\"token comment\"># \u6dfb\u52a0 Docker APT \u4ed3\u5e93<\/span><br \/>\n<span class=\"token function\">sudo<\/span> add-apt-repository <span class=\"token string\">&#034;deb [arch&#061;amd64] https:\/\/download.docker.com\/linux\/ubuntu <span class=\"token variable\"><span class=\"token variable\">$(<\/span>lsb_release -cs<span class=\"token variable\">)<\/span><\/span> stable&#034;<\/span><\/p>\n<p><span class=\"token comment\"># \u66f4\u65b0 apt \u5305\u7d22\u5f15<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> update<\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5 Docker CE<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt-get<\/span> <span class=\"token function\">install<\/span> docker-ce docker-ce-cli containerd.io<\/p>\n<p><span class=\"token comment\"># \u542f\u52a8 Docker \u5e76\u8bbe\u7f6e\u5f00\u673a\u81ea\u542f<\/span><br \/>\n<span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> &#8211;now <span class=\"token function\">docker<\/span><\/p>\n<h4>2.2 \u5b89\u88c5 Docker Compose<\/h4>\n<p><span class=\"token comment\"># \u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684 Docker Compose<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">curl<\/span> -L <span class=\"token string\">&#034;https:\/\/github.com\/docker\/compose\/releases\/download\/1.29.2\/docker-compose-<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">uname<\/span> -s<span class=\"token variable\">)<\/span><\/span>&#8211;<span class=\"token variable\"><span class=\"token variable\">$(<\/span><span class=\"token function\">uname<\/span> -m<span class=\"token variable\">)<\/span><\/span>&#034;<\/span> -o \/usr\/local\/bin\/docker-compose<\/p>\n<p><span class=\"token comment\"># \u8d4b\u4e88\u53ef\u6267\u884c\u6743\u9650<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">chmod<\/span> &#043;x \/usr\/local\/bin\/docker-compose<\/p>\n<p><span class=\"token comment\"># \u9a8c\u8bc1\u5b89\u88c5<\/span><br \/>\n<span class=\"token function\">docker-compose<\/span> &#8211;version<\/p>\n<h3>3. \u5b89\u88c5 Harbor<\/h3>\n<h4>3.1 \u4e0b\u8f7d Harbor \u5b89\u88c5\u5305<\/h4>\n<p>\u4ece Harbor \u7684 GitHub \u5b98\u65b9\u4ed3\u5e93\u4e0b\u8f7d\u6700\u65b0\u7684\u5b89\u88c5\u5305\u3002<\/p>\n<p><span class=\"token comment\"># \u4e0b\u8f7d Harbor \u5b89\u88c5\u5305<\/span><br \/>\n<span class=\"token function\">curl<\/span> -L https:\/\/github.com\/goharbor\/harbor\/releases\/download\/v2.4.3\/harbor-offline-installer-v2.4.3.tgz -o harbor-offline-installer.tgz<\/p>\n<p><span class=\"token comment\"># \u89e3\u538b\u5b89\u88c5\u5305<\/span><br \/>\n<span class=\"token function\">tar<\/span> xvf harbor-offline-installer.tgz<br \/>\n<span class=\"token builtin class-name\">cd<\/span> harbor<\/p>\n<h4>3.2 \u914d\u7f6e Harbor<\/h4>\n<p>\u5728 Harbor \u76ee\u5f55\u4e0b&#xff0c;\u6709\u4e00\u4e2a harbor.cfg \u914d\u7f6e\u6587\u4ef6&#xff0c;\u6211\u4eec\u9700\u8981\u5bf9\u5176\u8fdb\u884c\u4fee\u6539\u4ee5\u9002\u5e94\u6211\u4eec\u7684\u73af\u5883\u3002\u7279\u522b\u662f Harbor \u7684\u4e3b\u673a\u540d\u548c\u8ba4\u8bc1\u65b9\u5f0f\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u8fdb\u884c\u8bbe\u7f6e\u3002<\/p>\n<p><span class=\"token comment\"># \u7f16\u8f91 harbor.cfg \u914d\u7f6e\u6587\u4ef6<\/span><br \/>\n<span class=\"token function\">nano<\/span> harbor.cfg<\/p>\n<p>\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d&#xff0c;\u6211\u4eec\u9700\u8981\u5173\u6ce8\u4ee5\u4e0b\u51e0\u4e2a\u91cd\u8981\u5b57\u6bb5&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u6307\u5b9a Harbor \u4e3b\u673a\u540d<\/span><br \/>\n<span class=\"token function\">hostname<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">192.168<\/span>.1.100  <span class=\"token comment\"># \u8fd9\u91cc\u4fee\u6539\u4e3a\u5b9e\u9645\u7684\u670d\u52a1\u5668IP\u6216\u57df\u540d<\/span><\/p>\n<p><span class=\"token comment\"># \u542f\u7528https&#xff0c;\u914d\u7f6e\u8bc1\u4e66\u8def\u5f84<\/span><br \/>\nhttps <span class=\"token operator\">&#061;<\/span> <span class=\"token boolean\">true<\/span><br \/>\ncert_file <span class=\"token operator\">&#061;<\/span> \/path\/to\/your\/cert.crt<br \/>\nkey_file <span class=\"token operator\">&#061;<\/span> \/path\/to\/your\/private.key<\/p>\n<p><span class=\"token comment\"># \u914d\u7f6e Harbor \u7684\u6570\u636e\u5e93\u5bc6\u7801<\/span><br \/>\ndb_password <span class=\"token operator\">&#061;<\/span> your_db_password<\/p>\n<p><span class=\"token comment\"># \u914d\u7f6e Harbor \u7684\u8ba4\u8bc1\u65b9\u5f0f&#xff08;\u652f\u6301 OAuth\u3001LDAP \u7b49&#xff09;<\/span><br \/>\nauth_mode <span class=\"token operator\">&#061;<\/span> db_auth<\/p>\n<h4>3.3 \u542f\u52a8 Harbor<\/h4>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e&#xff0c;\u4f7f\u7528 Docker Compose \u542f\u52a8 Harbor\u3002<\/p>\n<p><span class=\"token comment\"># \u4f7f\u7528 Docker Compose \u542f\u52a8 Harbor<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">docker-compose<\/span> up -d<\/p>\n<h4>3.4 \u9a8c\u8bc1 Harbor \u662f\u5426\u6b63\u5e38\u8fd0\u884c<\/h4>\n<p><span class=\"token comment\"># \u67e5\u770b Harbor \u5bb9\u5668\u72b6\u6001<\/span><br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">docker-compose<\/span> <span class=\"token function\">ps<\/span><\/p>\n<p><span class=\"token comment\"># \u8bbf\u95ee Harbor UI<\/span><br \/>\n<span class=\"token comment\"># \u6253\u5f00\u6d4f\u89c8\u5668\u5e76\u8bbf\u95ee https:\/\/192.168.1.100 \u6216\u8005\u6307\u5b9a\u7684\u4e3b\u673a\u540d<\/span><\/p>\n<h4>3.5 \u767b\u5f55 Harbor<\/h4>\n<p>\u4f7f\u7528 Harbor \u7684\u9ed8\u8ba4\u7ba1\u7406\u5458\u8d26\u6237\u767b\u5f55&#xff0c;\u9ed8\u8ba4\u7528\u6237\u540d\u4e3a admin&#xff0c;\u5bc6\u7801\u4e3a Harbor12345\u3002<\/p>\n<h3>4. \u955c\u50cf\u751f\u547d\u5468\u671f\u7ba1\u7406<\/h3>\n<h4>4.1 \u521b\u5efa\u955c\u50cf\u4ed3\u5e93<\/h4>\n<p>\u5728 Harbor \u7684 Web UI \u4e2d&#xff0c;\u70b9\u51fb Projects&#xff0c;\u7136\u540e\u70b9\u51fb New Project \u6765\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u9879\u76ee\u3002\u9879\u76ee\u662f Harbor \u4e2d\u7ec4\u7ec7\u955c\u50cf\u7684\u57fa\u672c\u5355\u4f4d\u3002<\/p>\n<h4>4.2 \u63a8\u9001\u955c\u50cf\u5230 Harbor<\/h4>\n<p>\u5047\u8bbe\u4f60\u5df2\u7ecf\u6709\u4e00\u4e2a\u672c\u5730 Docker \u955c\u50cf&#xff0c;\u63a5\u4e0b\u6765\u9700\u8981\u5c06\u5176\u63a8\u9001\u5230 Harbor \u4ed3\u5e93\u4e2d\u3002<\/p>\n<p><span class=\"token comment\"># \u767b\u5f55\u5230 Harbor<\/span><br \/>\n<span class=\"token function\">docker<\/span> login <span class=\"token number\">192.168<\/span>.1.100  <span class=\"token comment\"># \u8f93\u5165\u7ba1\u7406\u5458\u8d26\u6237\u548c\u5bc6\u7801<\/span><\/p>\n<p><span class=\"token comment\"># \u6253\u6807\u7b7e<\/span><br \/>\n<span class=\"token function\">docker<\/span> tag my-app:latest <span class=\"token number\">192.168<\/span>.1.100\/myproject\/my-app:latest<\/p>\n<p><span class=\"token comment\"># \u63a8\u9001\u955c\u50cf<\/span><br \/>\n<span class=\"token function\">docker<\/span> push <span class=\"token number\">192.168<\/span>.1.100\/myproject\/my-app:latest<\/p>\n<h4>4.3 \u62c9\u53d6\u955c\u50cf<\/h4>\n<p>\u4ece Harbor \u62c9\u53d6\u955c\u50cf\u5230\u672c\u5730&#xff1a;<\/p>\n<p><span class=\"token function\">docker<\/span> pull <span class=\"token number\">192.168<\/span>.1.100\/myproject\/my-app:latest<\/p>\n<h4>4.4 \u955c\u50cf\u7248\u672c\u7ba1\u7406<\/h4>\n<p>Harbor \u652f\u6301\u955c\u50cf\u7248\u672c\u63a7\u5236&#xff0c;\u4f7f\u7528\u6807\u7b7e\u8fdb\u884c\u7248\u672c\u7ba1\u7406\u3002\u4f8b\u5982&#xff0c;\u53ef\u4ee5\u901a\u8fc7 v1.0, v1.1 \u7b49\u6807\u7b7e\u7ba1\u7406\u955c\u50cf\u7684\u4e0d\u540c\u7248\u672c\u3002<\/p>\n<h3>5. \u955c\u50cf\u5b89\u5168\u4e0e\u751f\u547d\u5468\u671f\u7ba1\u7406<\/h3>\n<p>Harbor \u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5b89\u5168\u529f\u80fd&#xff0c;\u5982\u955c\u50cf\u626b\u63cf\u3001\u8bbf\u95ee\u63a7\u5236\u7b49\u3002\u53ef\u4ee5\u901a\u8fc7 Harbor \u7684 Web UI \u914d\u7f6e\u4e0d\u540c\u7684\u5b89\u5168\u7b56\u7565\u3002<\/p>\n<h4>5.1 \u542f\u7528\u955c\u50cf\u626b\u63cf<\/h4>\n<p>Harbor \u652f\u6301\u4e0e Clair \u6216 Trivy \u7b49\u5de5\u5177\u96c6\u6210&#xff0c;\u8fdb\u884c\u955c\u50cf\u7684\u6f0f\u6d1e\u626b\u63cf\u3002\u5728 Harbor \u914d\u7f6e\u4e2d\u542f\u7528\u626b\u63cf\u529f\u80fd&#xff0c;\u786e\u4fdd\u4e0a\u4f20\u7684\u955c\u50cf\u6ca1\u6709\u5df2\u77e5\u7684\u6f0f\u6d1e\u3002<\/p>\n<h4>5.2 \u914d\u7f6e\u955c\u50cf\u751f\u547d\u5468\u671f\u7b56\u7565<\/h4>\n<p>Harbor \u5141\u8bb8\u8bbe\u7f6e\u955c\u50cf\u7684\u4fdd\u7559\u7b56\u7565&#xff0c;\u53ef\u4ee5\u8bbe\u7f6e\u955c\u50cf\u7684\u8fc7\u671f\u65f6\u95f4\u3001\u81ea\u52a8\u5220\u9664\u7b49\u3002\u901a\u8fc7\u914d\u7f6e Retention Policies&#xff0c;\u53ef\u4ee5\u786e\u4fdd\u53ea\u4fdd\u7559\u6709\u6548\u7684\u955c\u50cf&#xff0c;\u51cf\u5c11\u78c1\u76d8\u7a7a\u95f4\u7684\u6d6a\u8d39\u3002<\/p>\n<h3>6. \u6027\u80fd\u8bc4\u4f30<\/h3>\n<p>\u5728\u6784\u5efa\u548c\u90e8\u7f72 Harbor \u540e&#xff0c;\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u5bf9\u5176\u6027\u80fd\u8fdb\u884c\u8bc4\u4f30&#xff1a;<\/p>\n<h4>6.1 \u7f51\u7edc\u5e26\u5bbd\u4e0e\u5ef6\u8fdf\u6d4b\u8bd5<\/h4>\n<p>\u4f7f\u7528 curl \u6216 wget \u7b49\u5de5\u5177\u6d4b\u8bd5 Harbor \u670d\u52a1\u7684\u54cd\u5e94\u65f6\u95f4\u3002<\/p>\n<p><span class=\"token function\">curl<\/span> -I https:\/\/192.168.1.100<\/p>\n<h4>6.2 \u78c1\u76d8 I\/O \u6027\u80fd\u6d4b\u8bd5<\/h4>\n<p>\u4f7f\u7528 fio \u5de5\u5177\u8fdb\u884c\u78c1\u76d8 I\/O \u6027\u80fd\u6d4b\u8bd5&#xff0c;\u786e\u4fdd\u955c\u50cf\u5b58\u50a8\u5728 SSD \u4e0a\u7684\u6027\u80fd\u3002<\/p>\n<p>fio &#8211;name<span class=\"token operator\">&#061;<\/span>test &#8211;ioengine<span class=\"token operator\">&#061;<\/span>sync &#8211;size<span class=\"token operator\">&#061;<\/span>1G &#8211;numjobs<span class=\"token operator\">&#061;<\/span><span class=\"token number\">1<\/span> &#8211;runtime<span class=\"token operator\">&#061;<\/span>30m &#8211;time_based &#8211;group_reporting<\/p>\n<h4>6.3 CPU \u6027\u80fd\u76d1\u63a7<\/h4>\n<p>\u4f7f\u7528 top \u6216 htop \u76d1\u63a7 Harbor \u5bb9\u5668\u7684 CPU \u4f7f\u7528\u7387&#xff0c;\u786e\u4fdd\u7cfb\u7edf\u4e0d\u4f1a\u56e0\u4e3a\u8fc7\u8f7d\u800c\u5f71\u54cd\u670d\u52a1\u7a33\u5b9a\u6027\u3002<\/p>\n<h3>7. \u603b\u7ed3<\/h3>\n<p>A5\u6570\u636e\u5728\u672c\u6559\u7a0b\u4e2d&#xff0c;\u8be6\u7ec6\u4ecb\u7ecd\u4e86\u5982\u4f55\u5728 Ubuntu 22.04 \u4e0a\u6784\u5efa Harbor \u79c1\u6709\u955c\u50cf\u4ed3\u5e93&#xff0c;\u5e76\u5b9e\u73b0\u4e86\u955c\u50cf\u7684\u751f\u547d\u5468\u671f\u7ba1\u7406\u3002\u4ece\u73af\u5883\u51c6\u5907\u3001\u5b89\u88c5 Docker \u548c Harbor&#xff0c;\u5230\u955c\u50cf\u7684\u63a8\u9001\u3001\u62c9\u53d6\u3001\u7248\u672c\u7ba1\u7406\u3001\u4ee5\u53ca\u955c\u50cf\u7684\u5b89\u5168\u4e0e\u751f\u547d\u5468\u671f\u7ba1\u7406&#xff0c;\u6211\u4eec\u63d0\u4f9b\u4e86\u5177\u4f53\u7684\u6b65\u9aa4\u548c\u6280\u672f\u7ec6\u8282\u3002\u901a\u8fc7\u672c\u6559\u7a0b&#xff0c;\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u4e3a\u81ea\u5df1\u7684\u56e2\u961f\u642d\u5efa\u4e00\u4e2a\u9ad8\u6548\u3001\u5b89\u5168\u7684\u955c\u50cf\u4ed3\u5e93&#xff0c;\u4e3a\u5bb9\u5668\u5316\u5e94\u7528\u63d0\u4f9b\u7a33\u5b9a\u7684\u955c\u50cf\u5b58\u50a8\u670d\u52a1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u73b0\u4ee3\u7684\u5f00\u53d1\u4e0e\u8fd0\u7ef4\u73af\u5883\u4e2d&#xff0c;\u955c\u50cf\u4ed3\u5e93\u7684\u6784\u5efa\u548c\u7ba1\u7406\u662f\u975e\u5e38\u5173\u952e\u7684\u3002\u968f\u7740\u5bb9\u5668\u5316\u6280\u672f\u7684\u5e7f\u6cdb\u5e94\u7528&#xff0c;Docker \u955c\u50cf\u7684\u7ba1\u7406\u53d8\u5f97\u5c24\u4e3a\u91cd\u8981\u3002Harbor \u662f\u4e00\u4e2a\u9ad8\u6548\u7684\u4f01\u4e1a\u7ea7\u79c1\u6709\u955c\u50cf\u4ed3\u5e93&#xff0c;\u63d0\u4f9b\u4e86\u955c\u50cf\u7684\u5b58\u50a8\u3001\u7ba1\u7406\u4ee5\u53ca\u5b89\u5168\u7b56\u7565\u7b49\u529f\u80fd&#xff0c;\u5e7f\u6cdb\u5e94\u7528\u4e8e\u6301\u7eed\u96c6\u6210\u4e0e\u90e8\u7f72\u7684\u73af\u5883\u4e2d\u3002A5\u6570\u636e\u5728\u672c\u6559\u7a0b\u4e2d&#xff0c;\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728 Ubuntu 22.04 \u670d\u52a1\u5668\u4e0a\u6784\u5efa Harbor \u79c1\u6709\u955c\u50cf\u4ed3\u5e93&#xff0c;\u5e76\u5b9e\u73b0\u5b8c\u6574\u7684\u955c\u50cf\u751f\u547d\u5468\u671f\u7ba1\u7406\u65b9\u6848\u3002<br \/>\n1<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[103,43,44],"topic":[],"class_list":["post-65538","post","type-post","status-publish","format-standard","hentry","category-server","tag-ubuntu","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u6784\u5efa Harbor \u79c1\u6709\u955c\u50cf\u4ed3\u5e93\u4e0e\u955c\u50cf\u751f\u547d\u5468\u671f\u7ba1\u7406\u65b9\u6848\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/65538.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u6784\u5efa Harbor \u79c1\u6709\u955c\u50cf\u4ed3\u5e93\u4e0e\u955c\u50cf\u751f\u547d\u5468\u671f\u7ba1\u7406\u65b9\u6848\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u5728\u73b0\u4ee3\u7684\u5f00\u53d1\u4e0e\u8fd0\u7ef4\u73af\u5883\u4e2d&#xff0c;\u955c\u50cf\u4ed3\u5e93\u7684\u6784\u5efa\u548c\u7ba1\u7406\u662f\u975e\u5e38\u5173\u952e\u7684\u3002\u968f\u7740\u5bb9\u5668\u5316\u6280\u672f\u7684\u5e7f\u6cdb\u5e94\u7528&#xff0c;Docker \u955c\u50cf\u7684\u7ba1\u7406\u53d8\u5f97\u5c24\u4e3a\u91cd\u8981\u3002Harbor \u662f\u4e00\u4e2a\u9ad8\u6548\u7684\u4f01\u4e1a\u7ea7\u79c1\u6709\u955c\u50cf\u4ed3\u5e93&#xff0c;\u63d0\u4f9b\u4e86\u955c\u50cf\u7684\u5b58\u50a8\u3001\u7ba1\u7406\u4ee5\u53ca\u5b89\u5168\u7b56\u7565\u7b49\u529f\u80fd&#xff0c;\u5e7f\u6cdb\u5e94\u7528\u4e8e\u6301\u7eed\u96c6\u6210\u4e0e\u90e8\u7f72\u7684\u73af\u5883\u4e2d\u3002A5\u6570\u636e\u5728\u672c\u6559\u7a0b\u4e2d&#xff0c;\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728 Ubuntu 22.04 \u670d\u52a1\u5668\u4e0a\u6784\u5efa Harbor \u79c1\u6709\u955c\u50cf\u4ed3\u5e93&#xff0c;\u5e76\u5b9e\u73b0\u5b8c\u6574\u7684\u955c\u50cf\u751f\u547d\u5468\u671f\u7ba1\u7406\u65b9\u6848\u3002 1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/65538.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-25T00:48:21+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/65538.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/65538.html\",\"name\":\"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u6784\u5efa Harbor \u79c1\u6709\u955c\u50cf\u4ed3\u5e93\u4e0e\u955c\u50cf\u751f\u547d\u5468\u671f\u7ba1\u7406\u65b9\u6848\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-25T00:48:21+00:00\",\"dateModified\":\"2026-01-25T00:48:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/65538.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/65538.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/65538.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u6784\u5efa Harbor \u79c1\u6709\u955c\u50cf\u4ed3\u5e93\u4e0e\u955c\u50cf\u751f\u547d\u5468\u671f\u7ba1\u7406\u65b9\u6848\u6559\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u6784\u5efa Harbor \u79c1\u6709\u955c\u50cf\u4ed3\u5e93\u4e0e\u955c\u50cf\u751f\u547d\u5468\u671f\u7ba1\u7406\u65b9\u6848\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/65538.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u6784\u5efa Harbor \u79c1\u6709\u955c\u50cf\u4ed3\u5e93\u4e0e\u955c\u50cf\u751f\u547d\u5468\u671f\u7ba1\u7406\u65b9\u6848\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u5728\u73b0\u4ee3\u7684\u5f00\u53d1\u4e0e\u8fd0\u7ef4\u73af\u5883\u4e2d&#xff0c;\u955c\u50cf\u4ed3\u5e93\u7684\u6784\u5efa\u548c\u7ba1\u7406\u662f\u975e\u5e38\u5173\u952e\u7684\u3002\u968f\u7740\u5bb9\u5668\u5316\u6280\u672f\u7684\u5e7f\u6cdb\u5e94\u7528&#xff0c;Docker \u955c\u50cf\u7684\u7ba1\u7406\u53d8\u5f97\u5c24\u4e3a\u91cd\u8981\u3002Harbor \u662f\u4e00\u4e2a\u9ad8\u6548\u7684\u4f01\u4e1a\u7ea7\u79c1\u6709\u955c\u50cf\u4ed3\u5e93&#xff0c;\u63d0\u4f9b\u4e86\u955c\u50cf\u7684\u5b58\u50a8\u3001\u7ba1\u7406\u4ee5\u53ca\u5b89\u5168\u7b56\u7565\u7b49\u529f\u80fd&#xff0c;\u5e7f\u6cdb\u5e94\u7528\u4e8e\u6301\u7eed\u96c6\u6210\u4e0e\u90e8\u7f72\u7684\u73af\u5883\u4e2d\u3002A5\u6570\u636e\u5728\u672c\u6559\u7a0b\u4e2d&#xff0c;\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728 Ubuntu 22.04 \u670d\u52a1\u5668\u4e0a\u6784\u5efa Harbor \u79c1\u6709\u955c\u50cf\u4ed3\u5e93&#xff0c;\u5e76\u5b9e\u73b0\u5b8c\u6574\u7684\u955c\u50cf\u751f\u547d\u5468\u671f\u7ba1\u7406\u65b9\u6848\u3002 1","og_url":"https:\/\/www.wsisp.com\/helps\/65538.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-25T00:48:21+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/65538.html","url":"https:\/\/www.wsisp.com\/helps\/65538.html","name":"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u6784\u5efa Harbor \u79c1\u6709\u955c\u50cf\u4ed3\u5e93\u4e0e\u955c\u50cf\u751f\u547d\u5468\u671f\u7ba1\u7406\u65b9\u6848\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-25T00:48:21+00:00","dateModified":"2026-01-25T00:48:21+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/65538.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/65538.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/65538.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5728\u670d\u52a1\u5668 Ubuntu 22.04 \u4e0a\u6784\u5efa Harbor \u79c1\u6709\u955c\u50cf\u4ed3\u5e93\u4e0e\u955c\u50cf\u751f\u547d\u5468\u671f\u7ba1\u7406\u65b9\u6848\u6559\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/65538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=65538"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/65538\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=65538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=65538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=65538"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=65538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}