{"id":1215,"date":"2020-04-12T22:41:42","date_gmt":"2020-04-12T14:41:42","guid":{"rendered":"http:\/\/blog.ywdevops.cn\/?p=1215"},"modified":"2020-06-03T19:07:56","modified_gmt":"2020-06-03T11:07:56","slug":"zq","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2020\/04\/12\/zq\/","title":{"rendered":"Docker\u751f\u547d\u5468\u671f"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Docker\u5305\u62ec\u4e86\u4e09\u4e2a\u57fa\u672c\u6982\u5ff5\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u955c\u50cf\uff08Image\uff09<\/li><li>\u5bb9\u5668\uff08Container\uff09<\/li><li>\u4ed3\u5e93\uff08Repository\uff09<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u7406\u89e3\u4e86\u4e0a\u9762\u4e09\u4e2a\u6982\u5ff5\uff0c\u5c31\u7406\u89e3\u4e86\u6574\u4e2aDocker\u7684\u751f\u547d\u5468\u671f\u3002<\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>Docker \u955c\u50cf <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u90fd\u77e5\u9053\uff0c\u64cd\u4f5c\u7cfb\u7edf\u5206\u4e3a\u5185\u6838\u548c\u7528\u6237\u7a7a\u95f4\u3002\u5bf9\u4e8e Linux \u800c\u8a00\uff0c\u5185\u6838\u542f\u52a8\u540e\uff0c\u4f1a\u6302\u8f7d root \u6587\u4ef6\u7cfb\u7edf\u4e3a\u5176\u63d0\u4f9b\u7528\u6237\u7a7a\u95f4\u652f\u6301\u3002\u800c Docker \u955c\u50cf\uff08Image\uff09\uff0c\u5c31\u76f8\u5f53\u4e8e\u662f\u4e00\u4e2a root \u6587\u4ef6\u7cfb \u7edf\u3002\u6bd4\u5982\u5b98\u65b9\u955c\u50cf ubuntu:16.04 \u5c31\u5305\u542b\u4e86\u5b8c\u6574\u7684\u4e00\u5957 Ubuntu 16.04 \u6700\u5c0f\u7cfb\u7edf\u7684 root \u6587\u4ef6 \u7cfb\u7edf\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u56e0\u4e3a\u955c\u50cf\u5305\u542b\u64cd\u4f5c\u7cfb\u7edf\u5b8c\u6574\u7684 root \u6587\u4ef6\u7cfb\u7edf\uff0c\u5176\u4f53\u79ef\u5f80\u5f80\u662f\u5e9e\u5927\u7684\uff0c\u56e0\u6b64\u5728 Docker \u8bbe\u8ba1 \u65f6\uff0c\u5c31\u5145\u5206\u5229\u7528 Union FS \u7684\u6280\u672f\uff0c\u5c06\u5176\u8bbe\u8ba1\u4e3a\u5206\u5c42\u5b58\u50a8\u7684\u67b6\u6784\u3002\u6240\u4ee5\u4e25\u683c\u6765\u8bf4\uff0c\u955c\u50cf\u5e76\u975e\u662f \u50cf\u4e00\u4e2a ISO \u90a3\u6837\u7684\u6253\u5305\u6587\u4ef6\uff0c\u955c\u50cf\u53ea\u662f\u4e00\u4e2a\u865a\u62df\u7684\u6982\u5ff5\uff0c\u5176\u5b9e\u9645\u4f53\u73b0\u5e76\u975e\u7531\u4e00\u4e2a\u6587\u4ef6\u7ec4\u6210\uff0c \u800c\u662f\u7531\u4e00\u7ec4\u6587\u4ef6\u7cfb\u7edf\u7ec4\u6210\uff0c\u6216\u8005\u8bf4\uff0c\u7531\u591a\u5c42\u6587\u4ef6\u7cfb\u7edf\u8054\u5408\u7ec4\u6210\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u955c\u50cf\u6784\u5efa\u65f6\uff0c\u4f1a\u4e00\u5c42\u5c42\u6784\u5efa\uff0c\u524d\u4e00\u5c42\u662f\u540e\u4e00\u5c42\u7684\u57fa\u7840\u3002\u6bcf\u4e00\u5c42\u6784\u5efa\u5b8c\u5c31\u4e0d\u4f1a\u518d\u53d1\u751f\u6539\u53d8\uff0c\u540e\u4e00\u5c42\u4e0a\u7684\u4efb\u4f55\u6539\u53d8\u53ea\u53d1\u751f\u5728\u81ea\u5df1\u8fd9\u4e00\u5c42\u3002\u6bd4\u5982\uff0c\u5220\u9664\u524d\u4e00\u5c42\u6587\u4ef6\u7684\u64cd\u4f5c\uff0c\u5b9e\u9645\u4e0d\u662f\u771f\u7684\u5220\u9664\u524d\u4e00\u5c42\u7684\u6587\u4ef6\uff0c\u800c\u662f\u4ec5\u5728\u5f53\u524d\u5c42\u6807\u8bb0\u4e3a\u8be5\u6587\u4ef6\u5df2\u5220\u9664\u3002\u5728\u6700\u7ec8\u5bb9\u5668\u8fd0\u884c\u7684\u65f6\u5019\uff0c\u867d\u7136\u4e0d\u4f1a\u770b\u5230\u8fd9\u4e2a\u6587\u4ef6\uff0c\u4f46\u662f\u5b9e\u9645\u4e0a\u8be5\u6587\u4ef6\u4f1a\u4e00\u76f4\u8ddf\u968f\u955c\u50cf\u3002\u56e0\u6b64\uff0c\u5728\u6784\u5efa\u955c\u50cf\u7684\u65f6\u5019\uff0c\u9700\u8981\u989d\u5916\u5c0f\u5fc3\uff0c\u6bcf\u4e00\u5c42\u5c3d\u91cf\u53ea\u5305\u542b\u8be5\u5c42\u9700\u8981\u6dfb\u52a0\u7684\u4e1c\u897f\uff0c\u4efb\u4f55\u989d\u5916\u7684\u4e1c\u897f\u5e94\u8be5\u5728\u8be5\u5c42\u6784\u5efa\u7ed3\u675f\u524d\u6e05\u7406\u6389\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5206\u5c42\u5b58\u50a8\u7684\u7279\u5f81\u8fd8\u4f7f\u5f97\u955c\u50cf\u7684\u590d\u7528\u3001\u5b9a\u5236\u53d8\u7684\u66f4\u4e3a\u5bb9\u6613\u3002\u751a\u81f3\u53ef\u4ee5\u7528\u4e4b\u524d\u6784\u5efa\u597d\u7684\u955c\u50cf\u4f5c\u4e3a\u57fa\u7840\u5c42\uff0c\u7136\u540e\u8fdb\u4e00\u6b65\u6dfb\u52a0\u65b0\u7684\u5c42\uff0c\u4ee5\u5b9a\u5236\u81ea\u5df1\u6240\u9700\u7684\u5185\u5bb9\uff0c\u6784\u5efa\u65b0\u7684\u955c\u50cf\u3002 <\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"> <strong>Docker \u5bb9\u5668<\/strong> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u955c\u50cf\uff08 Image \uff09\u548c\u5bb9\u5668\uff08 Container \uff09\u7684\u5173\u7cfb\uff0c\u5c31\u50cf\u662f\u9762\u5411\u5bf9\u8c61\u7a0b\u5e8f\u8bbe\u8ba1\u4e2d\u7684\u7c7b \u548c \u5b9e\u4f8b \u4e00\u6837\uff0c\u955c\u50cf\u662f\u9759\u6001\u7684\u5b9a\u4e49\uff0c\u5bb9\u5668\u662f\u955c\u50cf\u8fd0\u884c\u65f6\u7684\u5b9e\u4f53\u3002\u5bb9\u5668\u53ef\u4ee5\u88ab\u521b\u5efa\u3001\u542f\u52a8\u3001\u505c\u6b62\u3001\u5220\u9664\u3001\u6682\u505c\u7b49\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bb9\u5668\u7684\u5b9e\u8d28\u662f\u8fdb\u7a0b\uff0c\u4f46\u4e0e\u76f4\u63a5\u5728\u5bbf\u4e3b\u6267\u884c\u7684\u8fdb\u7a0b\u4e0d\u540c\uff0c\u5bb9\u5668\u8fdb\u7a0b\u8fd0\u884c\u4e8e\u5c5e\u4e8e\u81ea\u5df1\u7684\u72ec\u7acb\u7684\u547d\u540d\u7a7a\u95f4\u3002\u56e0\u6b64\u5bb9\u5668\u53ef\u4ee5\u62e5\u6709\u81ea\u5df1\u7684 root \u6587\u4ef6\u7cfb\u7edf\u3001\u81ea\u5df1\u7684\u7f51\u7edc\u914d\u7f6e\u3001\u81ea\u5df1\u7684\u8fdb\u7a0b\u7a7a\u95f4\uff0c\u751a\u81f3\u81ea\u5df1\u7684\u7528\u6237 ID \u7a7a\u95f4\u3002\u5bb9\u5668\u5185\u7684\u8fdb\u7a0b\u662f\u8fd0\u884c\u5728\u4e00\u4e2a\u9694\u79bb\u7684\u73af\u5883\u91cc\uff0c\u4f7f\u7528\u8d77\u6765\uff0c\u5c31\u597d\u50cf\u662f\u5728\u4e00 \u4e2a\u72ec\u7acb\u4e8e\u5bbf\u4e3b\u7684\u7cfb\u7edf\u4e0b\u64cd\u4f5c\u4e00\u6837\u3002\u8fd9\u79cd\u7279\u6027\u4f7f\u5f97\u5bb9\u5668\u5c01\u88c5\u7684\u5e94\u7528\u6bd4\u76f4\u63a5\u5728\u5bbf\u4e3b\u8fd0\u884c\u66f4\u52a0\u5b89 \u5168\u3002\u4e5f\u56e0\u4e3a\u8fd9\u79cd\u9694\u79bb\u7684\u7279\u6027\uff0c\u5f88\u591a\u4eba\u521d\u5b66 Docker \u65f6\u5e38\u5e38\u4f1a\u6df7\u6dc6\u5bb9\u5668\u548c\u865a\u62df\u673a\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u524d\u9762\u8bb2\u8fc7\u955c\u50cf\u4f7f\u7528\u7684\u662f\u5206\u5c42\u5b58\u50a8\uff0c\u5bb9\u5668\u4e5f\u662f\u5982\u6b64\u3002\u6bcf\u4e00\u4e2a\u5bb9\u5668\u8fd0\u884c\u65f6\uff0c\u662f\u4ee5\u955c\u50cf\u4e3a\u57fa\u7840\u5c42\uff0c \u5728\u5176\u4e0a\u521b\u5efa\u4e00\u4e2a\u5f53\u524d\u5bb9\u5668\u7684\u5b58\u50a8\u5c42\uff0c\u6211\u4eec\u53ef\u4ee5\u79f0\u8fd9\u4e2a\u4e3a\u5bb9\u5668\u8fd0\u884c\u65f6\u8bfb\u5199\u800c\u51c6\u5907\u7684\u5b58\u50a8\u5c42\u4e3a\u5bb9\u5668\u5b58\u50a8\u5c42\u3002  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bb9\u5668\u5b58\u50a8\u5c42\u7684\u751f\u5b58\u5468\u671f\u548c\u5bb9\u5668\u4e00\u6837\uff0c\u5bb9\u5668\u6d88\u4ea1\u65f6\uff0c\u5bb9\u5668\u5b58\u50a8\u5c42\u4e5f\u968f\u4e4b\u6d88\u4ea1\u3002\u56e0\u6b64\uff0c\u4efb\u4f55\u4fdd\u5b58\u4e8e\u5bb9\u5668\u5b58\u50a8\u5c42\u7684\u4fe1\u606f\u90fd\u4f1a\u968f\u5bb9\u5668\u5220\u9664\u800c\u4e22\u5931\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5bb9\u5668\u4e0d\u5e94\u8be5\u5411\u5176\u5b58\u50a8\u5c42\u5185\u5199\u5165\u4efb\u4f55\u6570\u636e\uff0c\u5bb9\u5668\u5b58\u50a8\u5c42\u8981\u4fdd\u6301\u65e0\u72b6\u6001\u5316\u3002\u6240\u6709\u7684\u6587\u4ef6\u5199\u5165\u64cd\u4f5c\uff0c\u90fd\u5e94\u8be5\u4f7f\u7528 \u6570\u636e\u5377\uff08Volume\uff09\u3001\u6216\u8005\u7ed1\u5b9a\u5bbf\u4e3b\u76ee\u5f55\uff0c\u5728\u8fd9\u4e9b\u4f4d\u7f6e\u7684\u8bfb\u5199\u4f1a\u8df3\u8fc7\u5bb9\u5668\u5b58\u50a8\u5c42\uff0c\u76f4\u63a5\u5bf9\u5bbf\u4e3b\uff08\u6216\u7f51\u7edc\u5b58\u50a8\uff09\u53d1\u751f\u8bfb\u5199\uff0c\u5176\u6027\u80fd\u548c\u7a33\u5b9a\u6027\u66f4 \u9ad8\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6570\u636e\u5377\u7684\u751f\u5b58\u5468\u671f\u72ec\u7acb\u4e8e\u5bb9\u5668\uff0c\u5bb9\u5668\u6d88\u4ea1\uff0c\u6570\u636e\u5377\u4e0d\u4f1a\u6d88\u4ea1\u3002\u56e0\u6b64\uff0c\u4f7f\u7528\u6570\u636e\u5377\u540e\uff0c\u5bb9\u5668\u5220\u9664\u6216\u8005\u91cd\u65b0\u8fd0\u884c\u4e4b\u540e\uff0c\u6570\u636e\u5374\u4e0d\u4f1a\u4e22\u5931\u3002  <\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"> <strong>Docker Registry <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u955c\u50cf\u6784\u5efa\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u5f88\u5bb9\u6613\u7684\u5728\u5f53\u524d\u5bbf\u4e3b\u673a\u4e0a\u8fd0\u884c\uff0c\u4f46\u662f\uff0c\u5982\u679c\u9700\u8981\u5728\u5176\u5b83\u670d\u52a1\u5668\u4e0a\u4f7f\u7528\u8fd9\u4e2a\u955c\u50cf\uff0c\u6211\u4eec\u5c31\u9700\u8981\u4e00\u4e2a\u96c6\u4e2d\u7684\u5b58\u50a8\u3001\u5206\u53d1\u955c\u50cf\u7684\u670d\u52a1\uff0cDocker Registry \u5c31\u662f\u8fd9\u6837\u7684\u670d\u52a1\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u4e2a Docker Registry \u4e2d\u53ef\u4ee5\u5305\u542b\u591a\u4e2a\u4ed3\u5e93\uff08 Repository \uff09\uff1b\u6bcf\u4e2a\u4ed3\u5e93\u53ef\u4ee5\u5305\u542b\u591a\u4e2a\u6807\u7b7e \uff08 Tag \uff09\uff1b\u6bcf\u4e2a\u6807\u7b7e\u5bf9\u5e94\u4e00\u4e2a\u955c\u50cf\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u5e38\uff0c\u4e00\u4e2a\u4ed3\u5e93\u4f1a\u5305\u542b\u540c\u4e00\u4e2a\u8f6f\u4ef6\u4e0d\u540c\u7248\u672c\u7684\u955c\u50cf\uff0c\u800c\u6807\u7b7e\u5c31\u5e38\u7528\u4e8e\u5bf9\u5e94\u8be5\u8f6f\u4ef6\u7684\u5404\u4e2a\u7248\u672c\u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7 &lt;\u4ed3\u5e93\u540d>:&lt;\u6807\u7b7e> \u7684\u683c\u5f0f\u6765\u6307\u5b9a\u5177\u4f53\u662f\u8fd9\u4e2a\u8f6f\u4ef6\u54ea\u4e2a\u7248\u672c\u7684\u955c\u50cf\u3002\u5982\u679c\u4e0d\u7ed9\u51fa\u6807\u7b7e\uff0c\u5c06\u4ee5 latest \u4f5c\u4e3a\u9ed8\u8ba4\u6807\u7b7e\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5 Ubuntu \u955c\u50cf \u4e3a\u4f8b\uff0c ubuntu \u662f\u4ed3\u5e93\u7684\u540d\u5b57\uff0c\u5176\u5185\u5305\u542b\u6709\u4e0d\u540c\u7684\u7248\u672c\u6807\u7b7e\uff0c\u5982\uff0c 14.04 , 16.04 \u3002\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7 ubuntu:14.04 \uff0c\u6216\u8005 ubuntu:16.04 \u6765\u5177\u4f53\u6307\u5b9a\u6240\u9700\u54ea\u4e2a\u7248\u672c\u7684\u955c\u50cf\u3002\u5982\u679c\u5ffd\u7565\u4e86\u6807\u7b7e\uff0c\u6bd4\u5982 ubuntu \uff0c\u90a3\u5c06\u89c6\u4e3a ubuntu:latest \u3002   <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ed3\u5e93\u540d\u7ecf\u5e38\u4ee5 \u4e24\u6bb5\u5f0f\u8def\u5f84 \u5f62\u5f0f\u51fa\u73b0\uff0c\u6bd4\u5982 jwilder\/nginx-proxy \uff0c\u524d\u8005\u5f80\u5f80\u610f\u5473\u7740 Docker Registry \u591a\u7528\u6237\u73af\u5883\u4e0b\u7684\u7528\u6237\u540d\uff0c\u540e\u8005\u5219\u5f80\u5f80\u662f\u5bf9\u5e94\u7684\u8f6f\u4ef6\u540d\u3002\u4f46\u8fd9\u5e76\u975e\u7edd\u5bf9\uff0c\u53d6\u51b3\u4e8e\u6240\u4f7f\u7528\u7684\u5177\u4f53 Docker Registry \u7684\u8f6f\u4ef6\u6216\u670d\u52a1\u3002 <\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"> <strong>Docker Registry \u516c\u5f00\u670d\u52a1<\/strong> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Docker Registry \u516c\u5f00\u670d\u52a1\u662f\u5f00\u653e\u7ed9\u7528\u6237\u4f7f\u7528\u3001\u5141\u8bb8\u7528\u6237\u7ba1\u7406\u955c\u50cf\u7684 Registry \u670d\u52a1\u3002\u4e00\u822c\u8fd9\u7c7b\u516c\u5f00\u670d\u52a1\u5141\u8bb8\u7528\u6237\u514d\u8d39\u4e0a\u4f20\u3001\u4e0b\u8f7d\u516c\u5f00\u7684\u955c\u50cf\uff0c\u5e76\u53ef\u80fd\u63d0\u4f9b\u6536\u8d39\u670d\u52a1\u4f9b\u7528\u6237\u7ba1\u7406\u79c1\u6709\u955c\u50cf\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u5e38\u4f7f\u7528\u7684 Registry \u516c\u5f00\u670d\u52a1\u662f\u5b98\u65b9\u7684 Docker Hub\uff0c\u8fd9\u4e5f\u662f\u9ed8\u8ba4\u7684 Registry\uff0c\u5e76\u62e5\u6709\u5927\u91cf\u7684\u9ad8\u8d28\u91cf\u7684\u5b98\u65b9\u955c\u50cf\u3002\u9664\u6b64\u4ee5\u5916\uff0c\u8fd8\u6709 CoreOS \u7684 Quay.io\uff0cCoreOS \u76f8\u5173\u7684\u955c\u50cf\u5b58\u50a8\u5728\u8fd9\u91cc\uff1b Google \u7684 Google Container Registry\uff0cKubernetes \u7684\u955c\u50cf\u4f7f\u7528\u7684\u5c31\u662f\u8fd9\u4e2a\u670d\u52a1\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7531\u4e8e\u67d0\u4e9b\u539f\u56e0\uff0c\u5728\u56fd\u5185\u8bbf\u95ee\u8fd9\u4e9b\u670d\u52a1\u53ef\u80fd\u4f1a\u6bd4\u8f83\u6162\u3002\u56fd\u5185\u7684\u4e00\u4e9b\u4e91\u670d\u52a1\u5546\u63d0\u4f9b\u4e86\u9488\u5bf9 Docker Hub \u7684\u955c\u50cf\u670d\u52a1\uff08 Registry Mirror \uff09\uff0c\u8fd9\u4e9b\u955c\u50cf\u670d\u52a1\u88ab\u79f0\u4e3a\u52a0\u901f\u5668\u3002\u5e38\u89c1\u7684\u6709\u963f\u91cc\u4e91\u52a0\u901f \u5668\u3001DaoCloud \u52a0\u901f\u5668 \u7b49\u3002\u4f7f\u7528\u52a0\u901f\u5668\u4f1a\u76f4\u63a5\u4ece\u56fd\u5185\u7684\u5730\u5740\u4e0b\u8f7d Docker Hub \u7684\u955c\u50cf\uff0c\u6bd4\u76f4\u63a5\u4ece Docker Hub \u4e0b\u8f7d\u901f\u5ea6\u4f1a\u63d0\u9ad8\u5f88\u591a\u3002  <\/p>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"> <strong>\u79c1\u6709 Docker Registry <\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9664\u4e86\u4f7f\u7528\u516c\u5f00\u670d\u52a1\u5916\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u5728\u672c\u5730\u642d\u5efa\u79c1\u6709 Docker Registry\u3002Docker \u5b98\u65b9\u63d0\u4f9b\u4e86 Docker Registry \u955c\u50cf\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u505a\u4e3a\u79c1\u6709 Registry \u670d\u52a1\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f00\u6e90\u7684 Docker Registry \u955c\u50cf\u53ea\u63d0\u4f9b\u4e86 Docker Registry API \u7684\u670d\u52a1\u7aef\u5b9e\u73b0\uff0c\u8db3\u4ee5\u652f\u6301 docker \u547d\u4ee4\uff0c\u4e0d\u5f71\u54cd\u4f7f\u7528\u3002\u4f46\u4e0d\u5305\u542b\u56fe\u5f62\u754c\u9762\uff0c\u4ee5\u53ca\u955c\u50cf\u7ef4\u62a4\u3001\u7528\u6237\u7ba1\u7406\u3001\u8bbf\u95ee\u63a7\u5236\u7b49\u9ad8\u7ea7\u529f\u80fd\u3002\u5728\u5b98\u65b9\u7684\u5546\u4e1a\u5316\u7248\u672c Docker Trusted Registry \u4e2d\uff0c\u63d0\u4f9b\u4e86\u8fd9\u4e9b\u9ad8\u7ea7\u529f\u80fd\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u9664\u4e86\u5b98\u65b9\u7684 Docker Registry \u5916\uff0c\u8fd8\u6709\u7b2c\u4e09\u65b9\u8f6f\u4ef6\u5b9e\u73b0\u4e86 Docker Registry API\uff0c\u751a\u81f3\u63d0\u4f9b\u4e86\u7528 \u6237\u754c\u9762\u4ee5\u53ca\u4e00\u4e9b\u9ad8\u7ea7\u529f\u80fd\u3002\u6bd4\u5982\uff0cVMWare Harbor \u548c Sonatype Nexus\u3002  <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker\u5305\u62ec\u4e86\u4e09\u4e2a\u57fa\u672c\u6982\u5ff5\uff1a \u955c\u50cf\uff08Image\uff09 \u5bb9\u5668\uff08Container\uff09 \u4ed3\u5e93\uff08Repository\uff09 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":1217,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[39,23],"tags":[],"class_list":["post-1215","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker","category-rong"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/1215","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=1215"}],"version-history":[{"count":3,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/1215\/revisions"}],"predecessor-version":[{"id":1219,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/1215\/revisions\/1219"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/1217"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=1215"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=1215"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=1215"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}