{"id":2056,"date":"2021-11-26T01:09:43","date_gmt":"2021-11-25T17:09:43","guid":{"rendered":"https:\/\/199604.com\/?p=2056"},"modified":"2021-11-26T10:47:39","modified_gmt":"2021-11-26T02:47:39","slug":"harbor%e9%95%9c%e5%83%8f%e4%bb%93%e5%ba%93%e6%90%ad%e5%bb%ba%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/199604.com\/2056","title":{"rendered":"harbor\u955c\u50cf\u4ed3\u5e93\u642d\u5efa\u914d\u7f6e"},"content":{"rendered":"<h1>harbor\u955c\u50cf\u4ed3\u5e93\u642d\u5efa\u914d\u7f6e<\/h1>\n<h2>1.\u5b89\u88c5docker-compose(\u5df2\u7ecf\u5b89\u88c5\u7701\u7565)<\/h2>\n<h4>1. \u4e0b\u8f7d<\/h4>\n<p>\u5728 Linux \u4e0a\u7684\u4e5f\u5b89\u88c5\u5341\u5206\u7b80\u5355\uff0c\u4ece <a class=\"wp-editor-md-post-content-link\" href=\"https:\/\/github.com\/docker\/compose\/releases\">\u5b98\u65b9 GitHub Release<\/a> \u5904\u76f4\u63a5\u4e0b\u8f7d\u7f16\u8bd1\u597d\u7684\u4e8c\u8fdb\u5236\u6587\u4ef6\u5373\u53ef\u3002<\/p>\n<p>\u4f8b\u5982\uff0c\u5728 Linux 64 \u4f4d\u7cfb\u7edf\u4e0a\u76f4\u63a5\u4e0b\u8f7d\u5bf9\u5e94\u7684\u4e8c\u8fdb\u5236\u5305\u3002<\/p>\n<pre><code class=\"language-shell \">sudo curl -L \"https:\/\/github.com\/docker\/compose\/releases\/download\/1.29.2\/docker-compose-$(uname -s)-$(uname -m)\" -o \/usr\/local\/bin\/docker-compose\n\n# \u56fd\u5185\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4e24\u79cd\u65b9\u5f0f\u52a0\u5feb\u4e0b\u8f7d\nsudo curl -L \"https:\/\/get.daocloud.io\/docker\/compose\/releases\/download\/1.29.2\/docker-compose-$(uname -s)-$(uname -m)\" -o \/usr\/local\/bin\/docker-compose\n\n<\/code><\/pre>\n<h4>2.\u6388\u6743\u5e76\u505a\u8f6f\u8fde\u63a5\u5230\/usr\/bin<\/h4>\n<p><code>sudo chmod +x \/usr\/local\/bin\/docker-compose<\/code><\/p>\n<p><code>sudo ln -s \/usr\/local\/bin\/docker-compose \/usr\/bin\/docker-compose<\/code><\/p>\n<h5>\u6d4b\u8bd5\u662f\u5426\u5b89\u88c5\u6210\u529f:<\/h5>\n<pre><code class=\"language-shell \">[root@gzbsc001 bin]# docker-compose -version\ndocker-compose version 1.29.2, build 5becea4c\n<\/code><\/pre>\n<h4>3.bash \u8865\u5168\u63d0\u793a\u547d\u4ee4<\/h4>\n<p><code>$ curl -L https:\/\/raw.githubusercontent.com\/docker\/compose\/1.29.2\/contrib\/completion\/bash\/docker-compose &gt; \/etc\/bash_completion.d\/docker-compose<\/code><\/p>\n<h2>2.Harbor \u5b89\u88c5\uff1a<\/h2>\n<p>Harbor \u5b98\u65b9\u5730\u5740\uff1ahttps:\/\/github.com\/goharbor\/harbor\/releases<\/p>\n<h3>1\u3001\u4e0b\u8f7d,\u89e3\u538b\u8f6f\u4ef6\u5305\uff1a<\/h3>\n<pre><code class=\"language-shell \">wget https:\/\/github.com\/goharbor\/harbor\/releases\/download\/v1.10.9\/harbor-offline-installer-v1.10.9.tgz\n\ntar -zxvf harbor-offline-installer-v1.10.9.tgz \n\ncp -r harbor \/usr\/local\/\n<\/code><\/pre>\n<p>2.\u4fee\u6539<code>harbor.yml<\/code>\u6587\u4ef6<\/p>\n<pre><code class=\"language-yaml \">#\u4fee\u6539\u4ee5\u4e0b\u5185\u5bb9\n\nhostname: hub.cmcc.com #\u76ee\u6807\u4e3b\u673a\u7684\u4e3b\u673a\u540d\uff0c\u4f8b\u5982\uff0c192.168.1.10\u6216reg.yourdomain.com\n\nhttp:\n  # port for http, default is 80\n  port: 28080 #\u56e0\u4e3a\u672c\u673a\u5df2\u7ecf\u670980\n\nhttps:\n  # https port for harbor, default is 443\n  port: 443 #\u56e0\u4e3a\u672c\u673a443 \u6ca1\u5360\u7528\n  certificate: \/usr\/local\/harbor\/cert\/server.crt #\u9700\u8981\u751f\u6210\u7684\u8bc1\u4e66\n  private_key: \/usr\/local\/harbor\/cert\/server.key #\u9700\u8981\u751f\u6210\u7684\u8bc1\u4e66\n\nharbor_admin_password = harbor12345\u00a0 \u00a0#\u4fee\u6539harbor\u7684admin\u7528\u6237\u7684\u5bc6\u7801\n\ndata_volume: \/harbor\/data #\u4fee\u6539harbor\u5b58\u50a8\u4f4d\u7f6e\n<\/code><\/pre>\n<h3>3. \u521b\u5efa https \u8bc1\u4e66\u4ee5\u53ca\u914d\u7f6e\u76f8\u5173\u76ee\u5f55<\/h3>\n<h4>3.1\u521b\u5efa\u6839\u8bc1\u4e66\u79c1\u94a5 server.key<\/h4>\n<p><code>openssl genrsa -des3 -out server.key 2048<\/code><\/p>\n<p>\u56de\u8f66,\u8f93\u5165\u5bc6\u7801,\u786e\u8ba4\u5bc6\u7801<\/p>\n<h4>3.2 \u5229\u7528\u79c1\u94a5\uff0c\u521b\u5efa\u8bc1\u4e66\u8bf7\u6c42\u6587\u4ef6(CSR)<\/h4>\n<p><code>openssl req -new -key server.key -out server.csr<\/code><\/p>\n<p>\u56de\u8f66,\u8f93\u5165\u5bc6\u7801,\u56fd\u5bb6:CN,\u7701\u4efd\/city:BJ,\u57df\u540d:hub.cmcc.com (\u8fd9\u91cc\u7684\u57df\u540d\u7b49\u4e8eharbor.yml\u7684hostname)&#8230;\u540e\u9762\u7684\u6211\u5fd8\u8bb0\u4e86&#8230;.<\/p>\n<h3>3.3 \u5907\u4efd,\u5220\u9664\u5bc6\u7801(\u56e0\u4e3anginx\u4e0d\u652f\u6301\u5e26\u5bc6\u7801\u7684\u8bc1\u4e66)<\/h3>\n<p><code>cp server.key server.key.org<\/code><br \/>\n<code>openssl rsa -in server.key.org -out server.key<\/code><\/p>\n<h4>3.4\u751f\u6210\u81ea\u7b7e\u540d\u8bc1\u4e66<\/h4>\n<p><code>openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt<\/code><\/p>\n<p>\u5230\u8fd9\u91cc\u6211\u4eec\u7684\u8bc1\u4e66\u5c31\u5df2\u7ecf\u521b\u5efa\u6210\u529f\u4e86.(server.key \u548c server.crt) \u53ef\u4ee5\u76f4\u63a5\u7528\u5230https\u7684server\u4e2d\u4e86.<\/p>\n<h2>3.\u8fd0\u884c\u811a\u672c\u8fdb\u884c\u5b89\u88c5<\/h2>\n<p><code>.\/install.sh<\/code><\/p>\n<h2>4.\u8bbf\u95ee\u6d4b\u8bd5<\/h2>\n<p>\u8bbe\u7f6e<code>\/etc\/hosts<\/code><\/p>\n<p><code>echo \"192.168.31.101 hub.cmcc.com\" &gt;&gt; \/etc\/hosts<\/code><\/p>\n<p>https:\/\/hub.cmcc.com\u7684\u7ba1\u7406\u5458\u95e8\u6237\uff08\u5c06hub.cmcc.com\u66f4\u6539\u4e3a\u60a8\u7684\u4e3b\u673a\u540dharbor.cfg\uff09\u3002<\/p>\n<blockquote><p>\n  \u8bf7\u6ce8\u610f\uff0c\u9ed8\u8ba4\u7ba1\u7406\u5458\u7528\u6237\u540d\/\u5bc6\u7801\u4e3aadmin\/Harbor12345(\u6211\u5df2\u7ecf\u4fee\u6539\u6210:harbor12345),\u6b64\u5bc6\u7801\u4ec5\u5728Harbor\u9996\u6b21\u542f\u52a8\u65f6\u751f\u6548\u3002\u4e4b\u540e\u4fee\u6539\u4e5f\u65e0\u6548\u5566..\u5c06\u5ffd\u7565\u6b64\u8bbe\u7f6e\n<\/p><\/blockquote>\n<h3>\u4e0a\u4f20\u955c\u50cf\u8fdb\u884c\u4e0a\u4f20\u6d4b\u8bd5<\/h3>\n<h4>4.1 \u4fee\u6539\u6307\u5b9a\u955c\u50cf\u4ed3\u5e93\u5730\u5740 (\u4fe1\u4efb\u5173\u7cfb)<\/h4>\n<pre><code class=\"language-shell \">vim \/etc\/docker\/daemon.json \n\n{\n  \"registry-mirrors\": [\n  \"https:\/\/hub-mirror.c.163.com\",\n  \"https:\/\/mirror.baidubce.com\"\n  ],\n  \"insecure-registries\": [\"https:\/\/hub.cmcc.com\"]\n}\n<\/code><\/pre>\n<blockquote><p>\n  \u5728\u5e94\u7528docker\u8d8a\u6765\u8d8a\u6df1\u5165\u7684\u65f6\u5019\uff0c\u5fc5\u7136\u6d89\u53ca\u8fd9\u90e8\u5206\u7684\u5185\u5bb9\u3002\u5373\u8981\u4ece\u56fd\u5185\u5feb\u901f\u4e0b\u8f7d\u955c\u50cf\uff0c\u53c8\u9700\u8981\u5c06\u4e00\u4e9b\u955c\u50cf\u4e0a\u4f20\u5230\u516c\u53f8\u5185\u90e8(\u79bb\u7ebf)\u7684\u975e\u5b89\u5168\u4ed3\u5e93\u65f6\uff0c\u5c31\u6d3e\u4e0a\u7528\u573a\u4e86\u3002\n<\/p><\/blockquote>\n<p>\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6:<code>systemctl daemon-reload<\/code><\/p>\n<p>\u542f\u52a8docker:<code>systemctl restart docker<\/code><\/p>\n<h4>4.2\u4e0b\u8f7d\u6d4b\u8bd5\u955c\u50cf<\/h4>\n<p><code>docker pull hello-world<\/code><\/p>\n<h4>4.3 \u7ed9\u955c\u50cf\u91cd\u65b0\u6253\u6807\u7b7e<\/h4>\n<p><code>docker tag hello-world hub.cmcc.com\/library\/hello-world:latest<\/code><\/p>\n<h4>4.4 \u767b\u5f55\u8fdb\u884c\u4e0a\u4f20<\/h4>\n<p><code>docker login https:\/\/hub.cmcc.com<\/code><\/p>\n<p><code>docker push hub.cmcc.com\/library\/hello-world:latest<\/code><\/p>\n<pre><code class=\"language-shell \">[root@gzbsc001 harbor]# docker login https:\/\/hub.cmcc.com\nUsername: glj\nPassword: \nWARNING! Your password will be stored unencrypted in \/root\/.docker\/config.json.\nConfigure a credential helper to remove this warning. See\nhttps:\/\/docs.docker.com\/engine\/reference\/commandline\/login\/#credentials-store\n\nLogin Succeeded\n\n[root@gzbsc001 harbor]# docker push hub.cmcc.com\/library\/hello-world:latest\nThe push refers to repository [hub.cmcc.com\/library\/hello-world]\ne07ee1baac5f: Pushed \nlatest: digest: sha256:f54a58bc1aac5ea1a25d796ae155dc228b3f0e11d046ae276b39c4bf2f13d8c4 size: 525\n[root@gzbsc001 harbor]# \n<\/code><\/pre>\n<h2>harbor.yml \u53c2\u6570\u63cf\u8ff0<\/h2>\n<h3>\u5fc5\u9009\u53c2\u6570<\/h3>\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th><\/th>\n<th>\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>hostname<\/td>\n<td><\/td>\n<td>\u76ee\u6807\u4e3b\u673a\u7684\u4e3b\u673a\u540d\uff0c\u7528\u4e8e\u8bbf\u95eePortal\u548c\u6ce8\u518c\u8868\u670d\u52a1\u3002 \u5b83\u5e94\u8be5\u662f\u76ee\u6807\u8ba1\u7b97\u673a\u7684IP\u5730\u5740\u6216\u5b8c\u5168\u9650\u5b9a\u7684\u57df\u540d\uff08FQDN\uff09\uff0c\u4f8b\u5982\uff0c<a class=\"wp-editor-md-post-content-link\" href=\"http:\/\/192.168.1.xn--10reg-ym6j.yourdomain.com\/\">192.168.1.10\u6216reg.yourdomain.com<\/a>\u3002\u4e0d\u8981\u4f7f\u7528localhost\u6216127.0.0.1\u4f5c\u4e3a\u4e3b\u673a\u540d &#8211; \u5916\u90e8\u5ba2\u6237\u7aef\u9700\u8981\u8bbf\u95ee\u6ce8\u518c\u8868\u670d\u52a1\uff01<\/td>\n<\/tr>\n<tr>\n<td>data_volume<\/td>\n<td><\/td>\n<td>\u5b58\u50a8\u6570\u636e\u7684\u4f4d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td>harbor_admin_password<\/td>\n<td><\/td>\n<td>\u7ba1\u7406\u5458\u7684\u521d\u59cb\u5bc6\u7801\u3002\u6b64\u5bc6\u7801\u4ec5\u5728Harbor\u9996\u6b21\u542f\u52a8\u65f6\u751f\u6548\u3002\u4e4b\u540e\uff0c\u5c06\u5ffd\u7565\u6b64\u8bbe\u7f6e\uff0c\u5e76\u4e14\u5e94\u5728Portal\u4e2d\u8bbe\u7f6e\u7ba1\u7406\u5458\u5bc6\u7801\u3002\u8bf7\u6ce8\u610f\uff0c\u9ed8\u8ba4\u7528\u6237\u540d\/\u5bc6\u7801\u4e3aadmin \/ Harbor12345\u3002<\/td>\n<\/tr>\n<tr>\n<td>database<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>password<\/td>\n<td>\u7528\u4e8edb_auth\u7684PostgreSQL\u6570\u636e\u5e93\u7684root\u5bc6\u7801\u3002\u66f4\u6539\u6b64\u5bc6\u7801\u4ee5\u7528\u4e8e\u4efb\u4f55\u751f\u4ea7\u7528\u9014\uff01<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>jobservice<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>max_job_workers<\/td>\n<td>\u4f5c\u4e1a\u670d\u52a1\u4e2d\u7684\u6700\u5927\u590d\u5236\u5de5\u4f5c\u8005\u6570\u3002\u5bf9\u4e8e\u6bcf\u4e2a\u6620\u50cf\u590d\u5236\u4f5c\u4e1a\uff0c\u5de5\u4f5c\u7a0b\u5e8f\u5c06\u5b58\u50a8\u5e93\u7684\u6240\u6709\u6807\u8bb0\u540c\u6b65\u5230\u8fdc\u7a0b\u76ee\u6807\u3002\u589e\u52a0\u6b64\u6570\u91cf\u53ef\u4ee5\u5728\u7cfb\u7edf\u4e2d\u6267\u884c\u66f4\u591a\u5e76\u53d1\u590d\u5236\u4f5c\u4e1a\u3002\u4f46\u662f\uff0c\u7531\u4e8e\u6bcf\u4e2a\u5de5\u4f5c\u8005\u90fd\u6d88\u8017\u4e00\u5b9a\u91cf\u7684\u7f51\u7edc\/ CPU \/ IO\u8d44\u6e90\uff0c\u8bf7\u6839\u636e\u4e3b\u673a\u7684\u786c\u4ef6\u8d44\u6e90\u4ed4\u7ec6\u9009\u62e9\u8be5\u5c5e\u6027\u7684\u503c\u3002<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>log<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>level<\/td>\n<td>\u65e5\u5fd7\u7ea7\u522b\uff0c\u9009\u9879\u662f\u8c03\u8bd5\uff0c\u4fe1\u606f\uff0c\u8b66\u544a\uff0c\u9519\u8bef\uff0c\u81f4\u547d<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>rotate_count<\/td>\n<td>\u65e5\u5fd7\u6587\u4ef6\u5728\u88ab\u5220\u9664\u4e4b\u524d\u88ab\u8f6e\u6362\u4e3alog_rotate_count\u6b21\u3002\u5982\u679ccount\u4e3a0\uff0c\u5219\u5220\u9664<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>log_rotate_size<\/td>\n<td>\u4ec5\u5f53\u65e5\u5fd7\u6587\u4ef6\u5927\u4e8elog_rotate_size\u5b57\u8282\u65f6\u624d\u4f1a\u8f6e\u6362\u65e5\u5fd7\u6587\u4ef6\u3002\u5982\u679c\u5927\u5c0f\u540e\u8ddfk\uff0c\u5219\u5047\u5b9a\u5927\u5c0f\u4ee5\u5343\u5b57\u8282\u4e3a\u5355\u4f4d\u3002\u5982\u679c\u4f7f\u7528M\uff0c\u5219\u5927\u5c0f\u4ee5\u5146\u5b57\u8282\u4e3a\u5355\u4f4d\uff0c\u5982\u679c\u4f7f\u7528G\uff0c\u5219\u5927\u5c0f\u4ee5\u5343\u5146\u5b57\u8282\u4e3a\u5355\u4f4d\u3002\u5c3a\u5bf8100\uff0c\u5c3a\u5bf8100k\uff0c\u5c3a\u5bf8100M\u548c\u5c3a\u5bf8100G\u90fd\u662f\u6709\u6548\u7684<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>location<\/td>\n<td>\u5b58\u50a8\u4e2d\u65e5\u5fd7\u7684\u76ee\u5f55<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u53ef\u9009\u53c2\u6570<\/h3>\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th><\/th>\n<th><\/th>\n<th>\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>http<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>port<\/td>\n<td><\/td>\n<td>http\u7684\u7aef\u53e3\u53f7<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>https<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>port<\/td>\n<td><\/td>\n<td>https\u7684\u7aef\u53e3\u53f7<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>certificate<\/td>\n<td><\/td>\n<td>SSL\u8bc1\u4e66\u7684\u8def\u5f84\uff0c\u4ec5\u5728\u534f\u8bae\u8bbe\u7f6e\u4e3ahttps\u65f6\u5e94\u7528<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>private_key<\/td>\n<td><\/td>\n<td>SSL\u5bc6\u94a5\u7684\u8def\u5f84\uff0c\u4ec5\u5728\u534f\u8bae\u8bbe\u7f6e\u4e3ahttps\u65f6\u5e94\u7528<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>external_url<\/td>\n<td><\/td>\n<td><\/td>\n<td>\u5982\u679c\u4f7f\u7528\u5916\u90e8\u4ee3\u7406\uff0c\u5219\u542f\u7528\u5b83\uff0c\u5f53\u542f\u7528\u65f6\uff0c\u5c06\u4e0d\u518d\u4f7f\u7528\u4e3b\u673a\u540d<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>clair<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>updaters_interval<\/td>\n<td><\/td>\n<td>clair\u66f4\u65b0\u7a0b\u5e8f\u7684\u95f4\u9694\uff0c\u5355\u4f4d\u4e3a\u5c0f\u65f6\uff0c\u8bbe\u7f6e\u4e3a0\u4ee5\u7981\u7528\u66f4\u65b0\u7a0b\u5e8f<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>http_proxy<\/td>\n<td><\/td>\n<td>\u4e3aClair\u914d\u7f6ehttp\u4ee3\u7406\uff0c\u4f8b\u5982http:\/\/my.proxy.com:3128<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>https_proxy<\/td>\n<td><\/td>\n<td>\u4e3aClair\u914d\u7f6ehttps\u4ee3\u7406\uff0c\u4f8b\u5982http:\/\/my.proxy.com:3128<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>no_proxy<\/td>\n<td><\/td>\n<td>\u6ca1\u6709\u4e3aClair\u914d\u7f6e\u4ee3\u7406\uff0c\u4f8b\u5982127.0.0.1,localhost,core,registry<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>chart<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>absolute_url<\/td>\n<td><\/td>\n<td>\u5982\u679c\u8bbe\u7f6e\u4e3a\u542f\u7528\u56fe\u8868\u5c06\u4f7f\u7528\u7edd\u5bf9\u7f51\u5740\uff0c\u5426\u5219\u5c06\u5176\u8bbe\u7f6e\u4e3a\u7981\u7528\uff0c\u56fe\u8868\u5c06\u4f7f\u7528\u76f8\u5bf9\u7f51\u5740<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td><\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>external_database<\/td>\n<td><\/td>\n<td><\/td>\n<td>\u5916\u90e8\u6570\u636e\u5e93\u914d\u7f6e\uff0c\u76ee\u524d\u53ea\u652f\u6301POSTGRES<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>harbor<\/td>\n<td><\/td>\n<td>\u6838\u5fc3\u6570\u636e\u5e93\u914d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>host<\/td>\n<td>\u6838\u5fc3\u6570\u636e\u5e93\u7684\u4e3b\u673a\u540d<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>port<\/td>\n<td>\u6838\u5fc3\u6570\u636e\u5e93\u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>db_name<\/td>\n<td>\u6e2f\u53e3\u6838\u5fc3\u6570\u636e\u5e93\u7684\u6570\u636e\u5e93\u540d\u79f0<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>username<\/td>\n<td>\u7528\u4e8e\u8fde\u63a5\u6e2f\u53e3\u6838\u5fc3\u6570\u636e\u5e93\u7684\u7528\u6237\u540d<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>password<\/td>\n<td>\u6e2f\u53e3\u6838\u5fc3\u6570\u636e\u5e93\u7684\u5bc6\u7801<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>ssl_mode<\/td>\n<td>\u542f\u7528ssl\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td>&#8211;<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>clair<\/td>\n<td><\/td>\n<td>clair\u7684\u6570\u636e\u5e93\u914d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>host<\/td>\n<td>clair\u6570\u636e\u5e93\u7684\u4e3b\u673a\u540d<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>port<\/td>\n<td>clair\u6570\u636e\u5e93\u7684\u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>db_name<\/td>\n<td>clair\u6570\u636e\u5e93\u7684\u6570\u636e\u5e93\u540d\u79f0<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>username<\/td>\n<td>\u7528\u4e8e\u8fde\u63a5clair\u6570\u636e\u5e93\u7684\u7528\u6237\u540d<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>password<\/td>\n<td>clair\u6570\u636e\u5e93\u7684\u5bc6\u7801<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>ssl_mode<\/td>\n<td>\u542f\u7528ssl\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td>&#8211;<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>notary_signer<\/td>\n<td><\/td>\n<td>\u516c\u8bc1\u4eba\u7684\u7b7e\u540d\u8005\u6570\u636e\u5e93\u914d\u7f6e<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>host<\/td>\n<td>\u516c\u8bc1\u7b7e\u540d\u8005\u6570\u636e\u5e93\u7684\u4e3b\u673a\u540d<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>port<\/td>\n<td>\u516c\u8bc1\u7b7e\u540d\u8005\u6570\u636e\u5e93\u7684\u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>db_name<\/td>\n<td>\u516c\u8bc1\u7b7e\u540d\u8005\u6570\u636e\u5e93\u7684\u6570\u636e\u5e93\u540d\u79f0<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>username<\/td>\n<td>\u7528\u4e8e\u8fde\u63a5\u516c\u8bc1\u7b7e\u540d\u8005\u6570\u636e\u5e93\u7684\u7528\u6237\u540d<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>password<\/td>\n<td>\u516c\u8bc1\u7b7e\u540d\u8005\u6570\u636e\u5e93\u7684\u5bc6\u7801<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>ssl_mode<\/td>\n<td>\u542f\u7528ssl\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>&#8211;<\/td>\n<td>&#8211;<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>notary_server<\/td>\n<td><\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>host<\/td>\n<td>\u516c\u8bc1\u670d\u52a1\u5668\u6570\u636e\u5e93\u7684\u4e3b\u673a\u540d<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>port<\/td>\n<td>\u516c\u8bc1\u670d\u52a1\u5668\u6570\u636e\u5e93\u7684\u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>db_name<\/td>\n<td>\u516c\u8bc1\u670d\u52a1\u5668\u6570\u636e\u5e93\u7684\u6570\u636e\u5e93\u540d\u79f0<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>username<\/td>\n<td>\u7528\u4e8e\u8fde\u63a5\u516c\u8bc1\u670d\u52a1\u5668\u6570\u636e\u5e93\u7684\u7528\u6237\u540d<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>password<\/td>\n<td>\u516c\u8bc1\u670d\u52a1\u5668\u6570\u636e\u5e93\u7684\u5bc6\u7801<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td><\/td>\n<td>ssl_mode<\/td>\n<td>\u542f\u7528ssl\u6a21\u5f0f<\/td>\n<\/tr>\n<tr>\n<td>external_redis<\/td>\n<td><\/td>\n<td><\/td>\n<td>\u914d\u7f6e\u4f7f\u7528\u5916\u90e8redis<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>host<\/td>\n<td><\/td>\n<td>\u5916\u90e8redis\u7684\u4e3b\u673a<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>port<\/td>\n<td><\/td>\n<td>\u5916\u90e8redis\u7684\u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>password<\/td>\n<td><\/td>\n<td>\u7528\u4e8e\u8fde\u63a5\u5916\u90e8\u4e3b\u673a\u7684\u5bc6\u7801<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>registry_db_index<\/td>\n<td><\/td>\n<td>\u6ce8\u518c\u8868\u4f7f\u7528\u7684db\u7d22\u5f15<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>jobservice_db_index<\/td>\n<td><\/td>\n<td>jobservice\u7684 db\u7d22\u5f15<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>chartmuseum_db_index<\/td>\n<td><\/td>\n<td>chartmuseum\u7684 db\u7d22\u5f15<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>harbor\u955c\u50cf\u4ed3\u5e93\u642d\u5efa\u914d\u7f6e 1.\u5b89\u88c5docker-compose(\u5df2\u7ecf\u5b89\u88c5\u7701\u7565) 1. \u4e0b\u8f7d \u5728 Linux [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[332,260,240],"tags":[226,339],"class_list":{"0":"post-2056","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-docker","7":"category-linux","9":"tag-docker","10":"tag-harbor"},"_links":{"self":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts\/2056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/comments?post=2056"}],"version-history":[{"count":4,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts\/2056\/revisions"}],"predecessor-version":[{"id":2060,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/posts\/2056\/revisions\/2060"}],"wp:attachment":[{"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/media?parent=2056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/categories?post=2056"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/199604.com\/wp-json\/wp\/v2\/tags?post=2056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}