{"id":100850,"date":"2026-09-05T13:18:27","date_gmt":"2026-09-05T05:18:27","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/100850.html"},"modified":"2026-09-05T13:18:27","modified_gmt":"2026-09-05T05:18:27","slug":"%e3%80%90docker%e3%80%91%e9%95%9c%e5%83%8f%e4%bb%93%e5%ba%93","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/100850.html","title":{"rendered":"\u3010Docker\u3011\u955c\u50cf\u4ed3\u5e93"},"content":{"rendered":"<p>\u00a0\u00a0\u00a0&#x1f308;\u4e2a\u4eba\u4e3b\u9875&#xff1a;\u79e6jh__https:\/\/blog.csdn.net\/qinjh_?spm&#061;1010.2135.3001.5343 &#x1f525;\u00a0\u7cfb\u5217\u4e13\u680f&#xff1a;Docker_\u79e6jh_\u7684\u535a\u5ba2-CSDN\u535a\u5ba2<\/p>\n<p>\u00a0\u00a0<img decoding=\"async\" alt=\"9efbcbc3d25747719da38c01b3fa9b4f.gif\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051806-6a9ba60e2cc2b.gif\" \/>\u200b\u200b\u200b\u200b\u200b<\/p>\n<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"Docker%20Registry%EF%BC%88%E9%95%9C%E5%83%8F%E4%BB%93%E5%BA%93%EF%BC%89-toc\" style=\"margin-left:0px\">Docker Registry&#xff08;\u955c\u50cf\u4ed3\u5e93&#xff09;<\/p>\n<p id=\"%E4%BB%80%E4%B9%88%E6%98%AFDocker%20Registry-toc\" style=\"margin-left:40px\">\u4ec0\u4e48\u662fDocker Registry<\/p>\n<p id=\"%E9%95%9C%E5%83%8F%E4%BB%93%E5%BA%93%E5%88%86%E7%B1%BB-toc\" style=\"margin-left:40px\">\u955c\u50cf\u4ed3\u5e93\u5206\u7c7b<\/p>\n<p id=\"%E9%95%9C%E5%83%8F%E4%BB%93%E5%BA%93%E5%B7%A5%E4%BD%9C%E6%9C%BA%E5%88%B6-toc\" style=\"margin-left:40px\">\u955c\u50cf\u4ed3\u5e93\u5de5\u4f5c\u673a\u5236<\/p>\n<p id=\"%E9%95%9C%E5%83%8F%E4%BB%93%E5%BA%93%E5%91%BD%E4%BB%A4-toc\" style=\"margin-left:40px\">\u955c\u50cf\u4ed3\u5e93\u547d\u4ee4<\/p>\n<p id=\"%E5%91%BD%E4%BB%A4%E6%B8%85%E5%8D%95-toc\" style=\"margin-left:80px\">\u547d\u4ee4\u6e05\u5355<\/p>\n<p id=\"docker%20login-toc\" style=\"margin-left:80px\">docker login<\/p>\n<p id=\"docker%20pull-toc\" style=\"margin-left:80px\">docker pull<\/p>\n<p id=\"docker%20push-toc\" style=\"margin-left:80px\">docker push<\/p>\n<p id=\"docker%20search-toc\" style=\"margin-left:80px\">docker search<\/p>\n<p id=\"docker%20logout-toc\" style=\"margin-left:80px\">docker logout<\/p>\n<p id=\"%E9%95%9C%E5%83%8F%E5%91%BD%E4%BB%A4%5B%E9%83%A8%E5%88%86%5D-toc\" style=\"margin-left:40px\">\u955c\u50cf\u547d\u4ee4[\u90e8\u5206]<\/p>\n<p id=\"docker%20images-toc\" style=\"margin-left:80px\">docker images<\/p>\n<p id=\"docker%20image%20inspect-toc\" style=\"margin-left:80px\">docker image inspect<\/p>\n<p id=\"docker%20tag-toc\" style=\"margin-left:80px\">docker tag<\/p>\n<p id=\"%E5%AE%B9%E5%99%A8%E5%91%BD%E4%BB%A4%5B%E9%83%A8%E5%88%86%5D-toc\" style=\"margin-left:40px\">\u5bb9\u5668\u547d\u4ee4[\u90e8\u5206]<\/p>\n<p id=\"docker%20run-toc\" style=\"margin-left:80px\">docker run<\/p>\n<p id=\"docker%20ps-toc\" style=\"margin-left:80px\">docker ps<\/p>\n<p id=\"docker%20%E9%95%9C%E5%83%8F%E4%BB%93%E5%BA%93%E5%AE%9E%E6%88%98-toc\" style=\"margin-left:40px\">docker \u955c\u50cf\u4ed3\u5e93\u5b9e\u6218<\/p>\n<p id=\"%E7%BB%BC%E5%90%88%E5%AE%9E%E6%88%98%E4%B8%80%EF%BC%9A%E6%90%AD%E5%BB%BA%E4%B8%80%E4%B8%AAnginx%E6%9C%8D%E5%8A%A1-toc\" style=\"margin-left:80px\">\u7efc\u5408\u5b9e\u6218\u4e00&#xff1a;\u642d\u5efa\u4e00\u4e2anginx\u670d\u52a1<\/p>\n<p id=\"%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86-toc\" style=\"margin-left:120px\">\u57fa\u7840\u77e5\u8bc6<\/p>\n<p id=\"Web%E6%9C%8D%E5%8A%A1%E5%99%A8-toc\" style=\"margin-left:160px\">Web\u670d\u52a1\u5668<\/p>\n<p id=\"Nginx-toc\" style=\"margin-left:160px\">Nginx<\/p>\n<p id=\"%E6%8B%89%E5%8F%96%20Nginx%20%E9%95%9C%E5%83%8F%EF%BC%8C%E5%90%AF%E5%8A%A8%20Nginx%20%E7%AB%99%E7%82%B9-toc\" style=\"margin-left:120px\">\u62c9\u53d6 Nginx \u955c\u50cf&#xff0c;\u542f\u52a8 Nginx \u7ad9\u70b9<\/p>\n<p id=\"%E7%BB%BC%E5%90%88%E5%AE%9E%E6%88%98%E4%BA%8C%EF%BC%9ADocker%20hub%20%E4%B8%8A%E5%88%9B%E5%BB%BA%E8%87%AA%E5%B7%B1%E7%A7%81%E6%9C%89%E4%BB%93%E5%BA%93-toc\" style=\"margin-left:80px\">\u7efc\u5408\u5b9e\u6218\u4e8c&#xff1a;Docker hub \u4e0a\u521b\u5efa\u81ea\u5df1\u79c1\u6709\u4ed3\u5e93<\/p>\n<p id=\"%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86-toc\" style=\"margin-left:120px\">\u57fa\u7840\u77e5\u8bc6<\/p>\n<p id=\"Busybox-toc\" style=\"margin-left:160px\">Busybox<\/p>\n<p id=\"%E5%88%9B%E5%BB%BA%E8%B4%A6%E5%8F%B7-toc\" style=\"margin-left:120px\">\u521b\u5efa\u8d26\u53f7<\/p>\n<p id=\"%E5%88%9B%E5%BB%BA%E4%BB%93%E5%BA%93-toc\" style=\"margin-left:120px\">\u521b\u5efa\u4ed3\u5e93<\/p>\n<p id=\"%E6%8E%A8%E9%80%81%E9%95%9C%E5%83%8F%E5%88%B0%E4%BB%93%E5%BA%93-toc\" style=\"margin-left:120px\">\u63a8\u9001\u955c\u50cf\u5230\u4ed3\u5e93<\/p>\n<hr id=\"hr-toc\" \/>\n<h2 id=\"%E5%89%8D%E8%A8%80\">\u524d\u8a00<\/h2>\n<p>\u2002\u2002\u2002\u2002&#x1f4ac; hello! \u5404\u4f4d\u94c1\u5b50\u4eec\u5927\u5bb6\u597d\u54c7\u3002<\/p>\n<p>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u4eca\u65e5\u66f4\u65b0\u4e86Docker\u76f8\u5173\u5185\u5bb9 \u2002\u2002\u2002\u2002&#x1f389; \u6b22\u8fce\u5927\u5bb6\u5173\u6ce8&#x1f50d;\u70b9\u8d5e&#x1f44d;\u6536\u85cf\u2b50\ufe0f\u7559\u8a00&#x1f4dd;<\/p>\n<h2 id=\"Docker%20Registry%EF%BC%88%E9%95%9C%E5%83%8F%E4%BB%93%E5%BA%93%EF%BC%89\">Docker Registry&#xff08;\u955c\u50cf\u4ed3\u5e93&#xff09;<\/h2>\n<h3 id=\"%E4%BB%80%E4%B9%88%E6%98%AFDocker%20Registry\">\u4ec0\u4e48\u662fDocker Registry<\/h3>\n<p>\u955c\u50cf\u4ed3\u5e93 (Docker Registry) \u8d1f\u8d23\u5b58\u50a8\u3001\u7ba1\u7406\u548c\u5206\u53d1\u955c\u50cf&#xff0c;\u5e76\u4e14\u63d0\u4f9b\u4e86\u767b\u5f55\u8ba4\u8bc1\u80fd\u529b&#xff0c; \u5efa\u7acb\u4e86\u4ed3\u5e93\u7684\u7d22\u5f15\u3002<\/p>\n<p>\u955c\u50cf\u4ed3\u5e93\u7ba1\u7406\u591a\u4e2a Repository&#xff0c; Repository \u901a\u8fc7\u547d\u540d\u6765\u533a\u5206\u3002\u6bcf\u4e2a Repository \u5305\u542b\u4e00 \u4e2a\u6216\u591a\u4e2a\u955c\u50cf&#xff0c;\u955c\u50cf\u901a\u8fc7\u955c\u50cf\u540d\u79f0\u548c\u6807\u7b7e (Tag)\u6765\u533a\u5206\u3002<\/p>\n<p>\u6574\u4f53\u89c6\u56fe\u5982\u4e0b&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1424\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051806-6a9ba60e564ce.png\" width=\"2944\" \/><\/p>\n<ul>\n<li>\u955c\u50cf\u4ed3\u5e93(Registry):\u8981\u4ece\u54ea\u4e00\u4e2a\u955c\u50cf\u4ed3\u5e93\u62c9\u53d6\u955c\u50cf&#xff0c;\u901a\u5e38\u901a\u8fc7 DNS\u6216IP\u5730\u5740\u6765\u786e \u5b9a\u4e00\u4e2a\u955c\u50cf\u4ed3\u5e93\u5982 hub.docker.com;\u4e00\u4e2a Registry\u4e2d\u53ef\u4ee5\u5b58\u5728\u591a\u4e2a Repository\u00b7Repository \u53ef\u5206\u4e3a\u201c\u9876\u5c42\u4ed3\u5e93\u201d\u548c\u201c\u7528\u6237\u4ed3\u5e93\u201d;\u00b7\u7528\u6237\u4ed3\u5e93\u540d\u79f0\u683c\u5f0f\u4e3a\u201c\u7528\u6237\u540d\/\u4ed3\u5e93\u540d\u201d\u00b7\u6bcf\u4e2a\u4ed3\u5e93\u53ef\u4ee5\u5305\u542b\u591a\u4e2aTag(\u6807\u7b7e)&#xff0c;\u6bcf\u4e2a\u6807\u7b7e\u5bf9\u5e94\u4e00\u4e2a\u955c\u50cf<\/li>\n<li>Repository: \u00b7\u7531\u67d0\u7279\u5b9a\u7684docker\u955c\u50cf\u7684\u6240\u6709\u8fed\u4ee3\u7248\u672c\u7ec4\u6210\u7684\u955c\u50cf\u4ed3\u5e93<\/li>\n<li>\u955c\u50cf\u540d\u79f0&#xff08;name&#xff09;&#043;\u6807\u7b7e(tag):\u5982nginx:latest<\/li>\n<li>\u8ba4\u8bc1\u80fd\u529b&#xff1a;\u63d0\u4f9b\u7528\u6237\u6ce8\u518c&#xff0c;\u767b\u5f55\u3001\u767b\u51fa\u80fd\u529b<\/li>\n<li>\u7d22\u5f15&#xff1a;\u63d0\u4f9b\u955c\u50cf\u7684\u7d22\u5f15\u4fe1\u606f&#xff0c;\u65b9\u4fbf\u68c0\u7d22<\/li>\n<\/ul>\n<p>\u4e00\u4e2a\u5bb9\u5668\u955c\u50cf\u5305\u542b\u4e86\u4e24\u4e2a\u90e8\u5206&#xff0c;\u4e00\u4e2a\u662f\u5143\u6570\u636e&#xff0c;\u5176\u5b9e\u5c31\u662f\u7531dockerfile\u6784\u5efa\u51fa\u6765\u7684\u63cf \u8ff0\u6587\u4ef6&#xff0c;\u8fd9\u4e2a\u63cf\u8ff0\u6587\u4ef6\u4f1a\u8bf4\u8fd9\u4e2a\u5bb9\u5668\u955c\u50cf\u6709\u591a\u5c11\u5c42&#xff0c;\u6bcf\u4e00\u5c42\u91cc\u9762\u6709\u4ec0\u4e48\u5185\u5bb9&#xff0c;\u5b83\u7684 checksum\u8fd9\u4e9b\u4fe1\u606f\u90fd\u4f1a\u8bb0\u5f55\u4e0b\u6765&#xff0c;\u8fd8\u6709\u6700\u7ec8\u7684\u53ef\u6267\u884c\u6587\u4ef6\u5728\u54ea\u5c31\u662f\u5728\u5b58\u50a8\u6570\u636e\u91cc\u9762&#xff0c; \u5c31\u662f\u5728\u4e00\u4e2a\u4e00\u4e2a\u7684blob\u91cc\u9762&#xff0c;\u771f\u6b63\u5360\u6709\u7a7a\u95f4\u7684\u5c31\u662f\u8fd9\u4e9bblob\u3002<\/p>\n<h3 id=\"%E9%95%9C%E5%83%8F%E4%BB%93%E5%BA%93%E5%88%86%E7%B1%BB\">\u955c\u50cf\u4ed3\u5e93\u5206\u7c7b<\/h3>\n<p>\u6309\u662f\u5426\u5bf9\u5916\u5f00\u653e\u5212\u5206&#xff0c;\u4e5f\u662f\u7814\u53d1\u4eba\u5458\u5e38\u8bf4\u7684<\/p>\n<p>&#xff08;1&#xff09;\u516c\u6709\u4ed3\u5e93&#xff1a;\u50cf\u963f\u91cc\u4e91\u3001dockerhub \u7b49\u653e\u5230\u516c\u6709\u7f51\u7edc\u4e0a&#xff0c;\u4e0d\u7528\u767b\u5f55\u5c31\u53ef\u4ee5\u4e0b\u8f7d\u955c\u50cf&#xff0c; \u4f9b\u5927\u5bb6\u8bbf\u95ee\u4f7f\u7528<\/p>\n<p>&#xff08;2&#xff09;\u79c1\u6709\u4ed3\u5e93&#xff1a;\u4e0d\u5bf9\u5916\u5f00\u653e&#xff0c;\u5f80\u5f80\u4f4d\u4e8e\u79c1\u6709\u7f51\u7edc&#xff0c;\u53ea\u6709\u516c\u53f8\u5185\u90e8\u4eba\u5458\u53ef\u4ee5\u4f7f\u7528\u3002<\/p>\n<p>\u6309\u4f9b\u5e94\u5546\u548c\u9762\u5411\u7fa4\u4f53\u5212\u5206<\/p>\n<p>(1)sponsor&#xff08;\u8d5e\u52a9&#xff09; registry&#xff1a;\u7b2c\u4e09\u65b9\u7684registry&#xff0c;\u4f9b\u5ba2\u6237\u548cdocker\u793e\u533a\u7248\u4f7f\u7528<\/p>\n<p>(2)mirror(\u955c\u50cf&#xff09; registry&#xff1a;\u7b2c\u4e09\u65b9\u7684 registry&#xff0c;\u53ea\u8ba9\u5ba2\u6237\u4f7f\u7528&#xff0c;\u4f8b\u5982\u963f\u91cc\u4e91\u5fc5\u987b\u6ce8\u518c\u624d \u80fd\u4f7f\u7528<\/p>\n<p>(3)vendor(\u4f9b\u5e94\u5546) registry&#xff1a;\u7531\u53d1\u5e03 docker\u955c\u50cf\u7684\u4f9b\u5e94\u5546\u63d0\u4f9b\u7684registry&#xff0c;\u4f8b\u5982\u50cf Google \u548cRedhat\u63d0\u4f9b\u4e86\u955c\u50cf\u4ed3\u5e93\u670d\u52a1<\/p>\n<p>(4)private registry&#xff1a;\u901a\u8fc7\u6ca1\u6709\u9632\u706b\u5899\u548c\u989d\u5916\u7684\u5b89\u5168\u5c42\u7684\u79c1\u6709\u5b9e\u4f53\u63d0\u4f9b\u7684registry&#xff0c;\u4ec5\u4f9b \u5185\u90e8\u4f7f\u7528<\/p>\n<h3 id=\"%E9%95%9C%E5%83%8F%E4%BB%93%E5%BA%93%E5%B7%A5%E4%BD%9C%E6%9C%BA%E5%88%B6\">\u955c\u50cf\u4ed3\u5e93\u5de5\u4f5c\u673a\u5236<\/h3>\n<p>1. \u955c\u50cf\u4ed3\u5e93\u4f7f\u7528\u6d41\u7a0b<\/p>\n<ul>\n<li>\u901a\u8fc7docker login\u767b\u5f55\u4ed3\u5e93<\/li>\n<li>Docker pull \u62c9\u53d6\u9700\u8981\u7684\u955c\u50cf<\/li>\n<li>\u901a\u8fc7dockerfile\u6216\u8005commit\u7b49\u65b9\u5f0f\u5236\u4f5c\u5b8c\u955c\u50cf\u901a\u8fc7docker push\u4e0a\u4f20\u5230\u4ed3\u5e93<\/li>\n<\/ul>\n<p>2. \u5b9e\u9645\u7814\u53d1\u4e2d\u955c\u50cf\u4ed3\u5e93\u5982\u4f55\u4f7f\u7528<\/p>\n<p>Docker Registry \u4e2d\u7684\u955c\u50cf\u901a\u5e38\u7531\u5f00\u53d1\u4eba\u5458\u5236\u4f5c&#xff0c;\u800c\u540e\u63a8\u9001\u81f3\u201c\u516c\u5171\u201d\u6216\u201c\u79c1\u6709\u201dRegistry\u4e0a \u4fdd\u5b58&#xff0c;\u4f9b\u5176\u4ed6\u4eba\u5458\u4f7f\u7528&#xff0c;\u4f8b\u5982\u201c\u90e8\u7f72\u201d\u5230\u751f\u4ea7\u73af\u5883;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1696\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051810-6a9ba61288326.png\" width=\"2336\" \/><\/p>\n<p>\u540d\u8bcd\u89e3\u91ca<\/p>\n<p>\u5f00\u53d1\u73af\u5883&#xff1a;\u5f00\u53d1\u4eba\u5458\u4f7f\u7528\u7684\u4e00\u5957\u73af\u5883<\/p>\n<p>\u6d4b\u8bd5\u73af\u5883&#xff1a;\u9700\u6c42\u5f00\u53d1\u5b8c\u6210\u540e&#xff0c;\u53d1\u5e03\u5230\u4f9b\u6d4b\u8bd5\u4eba\u5458\u8fdb\u884c\u6d4b\u8bd5\u7684\u73af\u5883<\/p>\n<p>\u9884\u53d1\u5e03\u73af\u5883&#xff1a;\u7248\u672c\u6d4b\u8bd5\u5b8c\u6210\u540e&#xff0c;\u53d1\u5e03\u5230\u548c\u751f\u4ea7\u7c7b\u4f3c\u7684\u73af\u5883&#xff0c;\u63d0\u524d\u6a21\u62df\u751f\u4ea7\u53d1\u5e03<\/p>\n<p>\u751f\u4ea7\u73af\u5883&#xff1a;\u771f\u6b63\u9762\u5411\u5ba2\u6237\u7684\u73af\u5883<\/p>\n<p>3. \u955c\u50cf\u4ed3\u5e93\u7684\u62c9\u53d6\u673a\u5236<\/p>\n<p>\u542f\u52a8\u5bb9\u5668\u65f6&#xff0c;docker daemon\u4f1a\u8bd5\u56fe\u4ece\u672c\u5730\u83b7\u53d6\u76f8\u5173\u7684\u955c\u50cf;\u672c\u5730\u955c\u50cf\u4e0d\u5b58\u5728\u65f6&#xff0c;\u5176\u5c06 \u4eceRegistry \u4e2d\u4e0b\u8f7d\u8be5\u955c\u50cf\u5e76\u4fdd\u5b58\u5230\u672c\u5730;<\/p>\n<h3 id=\"%E9%95%9C%E5%83%8F%E4%BB%93%E5%BA%93%E5%91%BD%E4%BB%A4\">\u955c\u50cf\u4ed3\u5e93\u547d\u4ee4<\/h3>\n<h4 id=\"%E5%91%BD%E4%BB%A4%E6%B8%85%E5%8D%95\">\u547d\u4ee4\u6e05\u5355<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1536\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051813-6a9ba6155e59a.png\" width=\"2848\" \/><\/p>\n<h4 id=\"docker%20login\">docker login<\/h4>\n<p>\u529f\u80fd<\/p>\n<p>\u767b\u9646\u5230\u4e00\u4e2aDocker\u955c\u50cf\u4ed3\u5e93&#xff0c;\u5982\u679c\u672a\u6307\u5b9a\u955c\u50cf\u4ed3\u5e93\u5730\u5740&#xff0c;\u9ed8\u8ba4\u4e3a\u5b98\u65b9\u4ed3\u5e93 Docker Hub,<\/p>\n<p>\u8bed\u6cd5<\/p>\n<p>docker login [OPTIONS] [SERVER]<\/p>\n<p>\u5173\u952e\u53c2\u6570<\/p>\n<p>&#xffee; -u :\u767b\u9646\u7684\u7528\u6237\u540d<\/p>\n<p>&#xffee; -p :\u767b\u9646\u7684\u5bc6\u7801<\/p>\n<p>\u6837\u4f8b&#xff1a;docker login -u \u7528\u6237\u540d -p \u5bc6\u7801<\/p>\n<h4 id=\"docker%20pull\">docker pull<\/h4>\n<p>\u529f\u80fd<\/p>\n<p>\u4ece\u955c\u50cf\u4ed3\u5e93\u4e2d\u62c9\u53d6\u6216\u8005\u66f4\u65b0\u6307\u5b9a\u955c\u50cf<\/p>\n<p>\u8bed\u6cd5<\/p>\n<p>docker pull [OPTIONS] NAME[:TAG|&#064;DIGEST]<\/p>\n<p>\u5173\u952e\u53c2\u6570<\/p>\n<p>&#xffee; -a :\u62c9\u53d6\u6240\u6709 tagged \u955c\u50cf<\/p>\n<p>&#xffee; &#8211;disable-content-trust :\u5ffd\u7565\u955c\u50cf\u7684\u6821\u9a8c,\u9ed8\u8ba4\u5f00\u542f<\/p>\n<p>\u6837\u4f8b&#xff1a;<\/p>\n<p>docker pull nginx:1.23.3<\/p>\n<h4 id=\"docker%20push\">docker push<\/h4>\n<p>\u529f\u80fd<\/p>\n<p>\u5c06\u672c\u5730\u7684\u955c\u50cf\u4e0a\u4f20\u5230\u955c\u50cf\u4ed3\u5e93,\u8981\u5148\u767b\u9646\u5230\u955c\u50cf\u4ed3\u5e93<\/p>\n<p>\u8bed\u6cd5<\/p>\n<p>docker push [OPTIONS] NAME[:TAG]<\/p>\n<p>\u5173\u952e\u53c2\u6570<\/p>\n<p>&#xffee; -a :\u63a8\u9001\u6240\u6709 tagged \u955c\u50cf<\/p>\n<p>&#xffee; &#8211;disable-content-trust :\u5ffd\u7565\u955c\u50cf\u7684\u6821\u9a8c,\u9ed8\u8ba4\u5f00\u542f<\/p>\n<p>\u6837\u4f8b&#xff1a;<\/p>\n<p>docker push myapache:v1<\/p>\n<h4 id=\"docker%20search\">docker search<\/h4>\n<p>\u529f\u80fd<\/p>\n<p>\u4eceDocker Hub\u67e5\u627e\u955c\u50cf<\/p>\n<p>\u8bed\u6cd5<\/p>\n<p>docker search [OPTIONS] TERM<\/p>\n<p>\u5173\u952e\u53c2\u6570<\/p>\n<p>&#xffee; &#8211;no-trunc :\u663e\u793a\u5b8c\u6574\u7684\u955c\u50cf\u63cf\u8ff0&#xff1b;<\/p>\n<p>&#xffee; -f :\u5217\u51fa\u6536\u85cf\u6570\u4e0d\u5c0f\u4e8e\u6307\u5b9a\u503c\u7684\u955c\u50cf\u3002<\/p>\n<p>\u6837\u4f8b&#xff1a;<\/p>\n<p>#\u4ece Docker Hub \u67e5\u627e\u6240\u6709\u955c\u50cf\u540d\u5305\u542b nginx&#xff0c;\u5e76\u4e14star\u6570\u5927\u4e8e 10 \u7684\u955c\u50cf<\/p>\n<p>docker search -f stars&#061;10 nginx<\/p>\n<h4 id=\"docker%20logout\">docker logout<\/h4>\n<p>\u529f\u80fd<\/p>\n<p>\u767b\u51fa\u4e00\u4e2aDocker\u955c\u50cf\u4ed3\u5e93&#xff0c;\u5982\u679c\u672a\u6307\u5b9a\u955c\u50cf\u4ed3\u5e93\u5730\u5740&#xff0c;\u9ed8\u8ba4\u4e3a\u5b98\u65b9\u4ed3\u5e93 Docker Hub,<\/p>\n<p>\u8bed\u6cd5<\/p>\n<p>docker logout [SERVER]<\/p>\n<p>\u6837\u4f8b<\/p>\n<p>docker logout<\/p>\n<h3 id=\"%E9%95%9C%E5%83%8F%E5%91%BD%E4%BB%A4%5B%E9%83%A8%E5%88%86%5D\">\u955c\u50cf\u547d\u4ee4[\u90e8\u5206]<\/h3>\n<h4 id=\"docker%20images\">docker images<\/h4>\n<p>\u529f\u80fd<\/p>\n<p>\u5217\u51fa\u672c\u5730\u955c\u50cf\u3002<\/p>\n<p>\u8bed\u6cd5<\/p>\n<p>docker images [OPTIONS] [REPOSITORY[:TAG]]<\/p>\n<p>\u5173\u952e\u53c2\u6570<\/p>\n<p>&#xffee; -a :\u5217\u51fa\u672c\u5730\u6240\u6709\u7684\u955c\u50cf&#xff08;\u542b\u4e2d\u95f4\u6620\u50cf\u5c42&#xff0c;\u9ed8\u8ba4\u60c5\u51b5\u4e0b&#xff0c;\u8fc7\u6ee4\u6389\u4e2d\u95f4\u6620\u50cf\u5c42&#xff09;&#xff1b;<\/p>\n<p>&#xffee; &#8211;digests :\u663e\u793a\u955c\u50cf\u7684\u6458\u8981\u4fe1\u606f&#xff1b;<\/p>\n<p>&#xffee; -f :\u663e\u793a\u6ee1\u8db3\u6761\u4ef6\u7684\u955c\u50cf&#xff1b;<\/p>\n<p>&#xffee; &#8211;format :\u6307\u5b9a\u8fd4\u56de\u503c\u7684\u6a21\u677f\u6587\u4ef6&#xff1b;<\/p>\n<p>&#xffee; &#8211;no-trunc :\u663e\u793a\u5b8c\u6574\u7684\u955c\u50cf\u4fe1\u606f&#xff1b;<\/p>\n<p>&#xffee; -q :\u53ea\u663e\u793a\u955c\u50cfID\u3002<\/p>\n<p>\u6837\u4f8b<\/p>\n<p>#\u5217\u51fa\u672c\u5730\u5168\u90e8\u955c\u50cf<\/p>\n<p>docker images<\/p>\n<p>#\u5217\u51fa\u672c\u5730\u955c\u50cf\u4e2dREPOSITORY\u4e3aubuntu\u7684\u955c\u50cf\u5217\u8868\u3002<\/p>\n<p>docker images ubuntu<\/p>\n<h4 id=\"docker%20image%20inspect\">docker image inspect<\/h4>\n<p>\u529f\u80fd<\/p>\n<p>\u67e5\u770b\u955c\u50cf\u8be6\u7ec6\u4fe1\u606f<\/p>\n<p>\u8bed\u6cd5<\/p>\n<p>docker image inspect [OPTIONS] IMAGE [IMAGE&#8230;]<\/p>\n<p>\u6837\u4f8b<\/p>\n<p>#\u67e5\u770b\u955c\u50cf\u8be6\u7ec6\u4fe1\u606f<\/p>\n<p>docker images inspect nginx:1.23.3<\/p>\n<h4 id=\"docker%20tag\">docker tag<\/h4>\n<p>\u529f\u80fd<\/p>\n<p>\u6807\u8bb0\u672c\u5730\u955c\u50cf&#xff0c;\u5c06\u5176\u5f52\u5165\u67d0\u4e00\u4ed3\u5e93\u3002<\/p>\n<p>\u8bed\u6cd5<\/p>\n<p>docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]<\/p>\n<p>\u6837\u4f8b<\/p>\n<p>docker tag ubuntu:22.04 myregistry.com\/myubuntu:22.04<\/p>\n<h3 id=\"%E5%AE%B9%E5%99%A8%E5%91%BD%E4%BB%A4%5B%E9%83%A8%E5%88%86%5D\">\u5bb9\u5668\u547d\u4ee4[\u90e8\u5206]<\/h3>\n<h4 id=\"docker%20run\">docker run<\/h4>\n<p>\u529f\u80fd<\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5bb9\u5668\u5e76\u8fd0\u884c\u4e00\u4e2a\u547d\u4ee4<\/p>\n<p>\u8bed\u6cd5<\/p>\n<p>docker run [OPTIONS] IMAGE [COMMAND] [ARG&#8230;]<\/p>\n<p>\u5173\u952e\u53c2\u6570<\/p>\n<p>&#xffee; -d: \u540e\u53f0\u8fd0\u884c\u5bb9\u5668&#xff0c;\u5e76\u8fd4\u56de\u5bb9\u5668ID&#xff1b;<\/p>\n<p>&#xffee; -i: \u4ee5\u4ea4\u4e92\u6a21\u5f0f\u8fd0\u884c\u5bb9\u5668&#xff0c;\u901a\u5e38\u4e0e -t \u540c\u65f6\u4f7f\u7528&#xff1b;<\/p>\n<p>&#xffee; -P: \u968f\u673a\u7aef\u53e3\u6620\u5c04&#xff0c;\u5bb9\u5668\u5185\u90e8\u7aef\u53e3\u968f\u673a\u6620\u5c04\u5230\u4e3b\u673a\u7684\u7aef\u53e3<\/p>\n<p>&#xffee; -p: \u6307\u5b9a\u7aef\u53e3\u6620\u5c04&#xff0c;\u683c\u5f0f\u4e3a&#xff1a;\u4e3b\u673a(\u5bbf\u4e3b)\u7aef\u53e3:\u5bb9\u5668\u7aef\u53e3<\/p>\n<p>&#xffee; -t: \u4e3a\u5bb9\u5668\u91cd\u65b0\u5206\u914d\u4e00\u4e2a\u4f2a\u8f93\u5165\u7ec8\u7aef&#xff0c;\u901a\u5e38\u4e0e -i \u540c\u65f6\u4f7f\u7528&#xff1b;<\/p>\n<p>&#xffee; &#8211;name&#061;&#034;nginx-lb&#034;: \u4e3a\u5bb9\u5668\u6307\u5b9a\u4e00\u4e2a\u540d\u79f0&#xff1b;<\/p>\n<p>&#xffee; -h &#034;mars&#034;: \u6307\u5b9a\u5bb9\u5668\u7684hostname&#xff1b;<\/p>\n<p>&#xffee; -e username&#061;&#034;ritchie&#034;: \u8bbe\u7f6e\u73af\u5883\u53d8\u91cf&#xff1b;<\/p>\n<p>&#xffee; &#8211;cpuset-cpus&#061;&#034;0-2&#034; or &#8211;cpuset-cpus&#061;&#034;0,1,2&#034;: \u7ed1\u5b9a\u5bb9\u5668\u5230\u6307\u5b9a CPU\u8fd0\u884c&#xff1b;<\/p>\n<p>&#xffee; -m :\u8bbe\u7f6e\u5bb9\u5668\u4f7f\u7528\u5185\u5b58\u6700\u5927\u503c&#xff1b;<\/p>\n<p>&#xffee; &#8211;network&#061;&#034;bridge&#034;: \u6307\u5b9a\u5bb9\u5668\u7684\u7f51\u7edc\u8fde\u63a5\u7c7b\u578b&#xff1b;<\/p>\n<p>&#xffee; &#8211;link&#061;[]: \u6dfb\u52a0\u94fe\u63a5\u5230\u53e6\u4e00\u4e2a\u5bb9\u5668&#xff1b;<\/p>\n<p>&#xffee; &#8211;volume , -v: \u7ed1\u5b9a\u4e00\u4e2a\u5377<\/p>\n<p>&#xffee; &#8211;rm :shell\u9000\u51fa\u7684\u65f6\u5019\u81ea\u52a8\u5220\u9664\u5bb9\u5668<\/p>\n<p>\u6837\u4f8b<\/p>\n<p>#\u4f7f\u7528docker \u955c\u50cfnginx:latest \u4ee5\u540e\u53f0\u6a21\u5f0f\u542f\u52a8\u4e00\u4e2a\u5bb9\u5668,\u5e76\u5c06\u5bb9\u5668\u547d\u540d\u4e3a mynginx\u3002<\/p>\n<p>docker run &#8211;name mynginx -d nginx:latest<\/p>\n<\/p>\n<p>#\u4f7f\u7528\u955c\u50cf nginx:latest&#xff0c;\u4ee5\u540e\u53f0\u6a21\u5f0f\u542f\u52a8\u4e00\u4e2a\u5bb9\u5668,\u5c06\u5bb9\u5668\u7684 80 \u7aef\u53e3\u6620\u5c04\u5230\u4e3b\u673a\u7684 80 \u7aef\u53e3,\u4e3b\u673a\u7684\u76ee\u5f55 \/data \u6620\u5c04\u5230\u5bb9\u5668\u7684 \/data\u3002<\/p>\n<p>docker run -p 80:80 -v \/data:\/data -d nginx:latest<\/p>\n<h4 id=\"docker%20ps\">docker ps<\/h4>\n<p>\u529f\u80fd<\/p>\n<p>\u5217\u51fa\u5bb9\u5668<\/p>\n<p>\u8bed\u6cd5<\/p>\n<p>docker ps [OPTIONS]<\/p>\n<p>\u5173\u952e\u53c2\u6570<\/p>\n<p>&#xffee; -a :\u663e\u793a\u6240\u6709\u7684\u5bb9\u5668&#xff0c;\u5305\u62ec\u672a\u8fd0\u884c\u7684\u3002<\/p>\n<p>&#xffee; -f :\u6839\u636e\u6761\u4ef6\u8fc7\u6ee4\u663e\u793a\u7684\u5185\u5bb9\u3002<\/p>\n<p>&#xffee; &#8211;format :\u6307\u5b9a\u8fd4\u56de\u503c\u7684\u6a21\u677f\u6587\u4ef6\u3002\u5982json\u6216\u8005table<\/p>\n<p>&#xffee; -l :\u663e\u793alatest\u7684\u5bb9\u5668\u3002<\/p>\n<p>&#xffee; -n :\u5217\u51fa\u6700\u8fd1\u521b\u5efa\u7684n\u4e2a\u5bb9\u5668\u3002<\/p>\n<p>&#xffee; &#8211;no-trunc :\u4e0d\u622a\u65ad\u8f93\u51fa\u3002<\/p>\n<p>&#xffee; -q :\u9759\u9ed8\u6a21\u5f0f&#xff0c;\u53ea\u663e\u793a\u5bb9\u5668\u7f16\u53f7\u3002<\/p>\n<p>&#xffee; -s :\u663e\u793a\u603b\u7684\u6587\u4ef6\u5927\u5c0f\u3002<\/p>\n<p>\u6837\u4f8b<\/p>\n<p>docker ps -a<\/p>\n<h3 id=\"docker%20%E9%95%9C%E5%83%8F%E4%BB%93%E5%BA%93%E5%AE%9E%E6%88%98\">docker \u955c\u50cf\u4ed3\u5e93\u5b9e\u6218<\/h3>\n<h4 id=\"%E7%BB%BC%E5%90%88%E5%AE%9E%E6%88%98%E4%B8%80%EF%BC%9A%E6%90%AD%E5%BB%BA%E4%B8%80%E4%B8%AAnginx%E6%9C%8D%E5%8A%A1\">\u7efc\u5408\u5b9e\u6218\u4e00&#xff1a;\u642d\u5efa\u4e00\u4e2anginx\u670d\u52a1<\/h4>\n<h5 id=\"%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86\">\u57fa\u7840\u77e5\u8bc6<\/h5>\n<h6 id=\"Web%E6%9C%8D%E5%8A%A1%E5%99%A8\">Web\u670d\u52a1\u5668<\/h6>\n<p>Web\u670d\u52a1\u5668&#xff0c;\u4e00\u822c\u662f\u6307\u201c\u7f51\u7ad9\u670d\u52a1\u5668\u201d&#xff0c;\u662f\u6307\u9a7b\u7559\u4e8e\u4e92\u8054\u7f51\u4e0a\u67d0\u79cd\u7c7b\u578b\u8ba1\u7b97\u673a\u7684\u7a0b\u5e8f\u3002 Web\u670d\u52a1\u5668\u53ef\u4ee5\u5411Web\u6d4f\u89c8\u5668\u7b49\u5ba2\u6237\u7aef\u63d0\u4f9b\u6587\u6863&#xff0c;\u4e5f\u53ef\u4ee5\u653e\u7f6e\u7f51\u7ad9\u6587\u4ef6&#xff0c;\u8ba9\u5168\u4e16\u754c \u6d4f\u89c8&#xff0c;\u66f4\u53ef\u4ee5\u653e\u7f6e\u6570\u636e\u6587\u4ef6&#xff0c;\u8ba9\u5168\u4e16\u754c\u4e0b\u8f7d\u3002<\/p>\n<p>Web\u670d\u52a1\u5668&#xff0c;\u4e5f\u79f0\u4e3a\u201cWWW\u670d\u52a1\u5668\u201d( \u82f1\u6587\u5168\u5199&#xff1a;World Wide Web&#xff0c;\u7ffb\u8bd1\u6210\u4e2d\u6587&#xff1a;\u4e07 \u7ef4\u7f51\u6216\u73af\u7403\u4fe1\u606f\u7f51 )&#xff0c;\u4e3b\u8981\u529f\u80fd\u662f\u201c\u63d0\u4f9b\u7f51\u4e0a\u4fe1\u606f\u6d4f\u89c8\u670d\u52a1\u201d\u3002 WWW \u662fInternet&#xff08;\u4e92\u8054 \u7f51&#xff09;\u7684\u591a\u5a92\u4f53\u4fe1\u606f\u67e5\u8be2\u5de5\u5177&#xff0c;\u662fInternet&#xff08;\u4e92\u8054\u7f51&#xff09;\u4e0a\u53d1\u5c55\u8d77\u6765\u7684\u670d\u52a1&#xff0c;\u4e5f\u662f\u53d1\u5c55\u6700\u5feb \u548c\u76ee\u524d\u4f7f\u7528\u6700\u5e7f\u6cdb\u7684\u670d\u52a1\u3002\u6b63\u662f\u56e0\u4e3a\u6709\u4e86WWW\u5de5\u5177&#xff0c;\u624d\u4f7f\u5f97\u8fd1\u5341\u51e0\u5e74\u6765\u4e92\u8054\u7f51\u8fc5\u901f \u7e41\u8363\u53d1\u5c55&#xff0c;\u7528\u6237\u6570\u91cf\u98de\u901f\u98d9\u5347\u3002\u636e\u6700\u65b0\u6570\u636e\u663e\u793a&#xff0c;\u76ee\u524d\u5168\u7403\u4eba\u53e3\u6570\u91cf\u8fbe\u5230 76.76 \u4ebf\u4eba&#xff0c; \u5176\u4e2d\u5168\u7403\u201c\u7f51\u6c11\u201d&#xff08;\u4e92\u8054\u7f51\u7528\u6237&#xff09;\u8fbe\u5230\u60ca\u4eba\u768443.88\u4ebf\u3002<\/p>\n<p>\u4f8b\u5982\u767e\u5ea6\u5c31\u662f\u4e00\u4e2aweb\u670d\u52a1\u5668&#xff0c;\u63d0\u4f9b\u641c\u7d22\u670d\u52a1<\/p>\n<h6 id=\"Nginx\">Nginx<\/h6>\n<p>Nginx \u662f\u4e00\u6b3e\u81ea\u7531\u7684\u3001\u5f00\u6e90\u7684\u3001\u9ad8\u6027\u80fd\u7684HTTP\u670d\u52a1\u5668\u548c\u53cd\u5411\u4ee3\u7406\u670d\u52a1\u5668&#xff1b;\u540c\u65f6\u4e5f\u662f \u4e00\u4e2aIMAP\u3001POP3\u3001SMTP\u4ee3\u7406\u670d\u52a1\u5668&#xff1b;Nginx\u53ef\u4ee5\u4f5c\u4e3a\u4e00\u4e2aHTTP\u670d\u52a1\u5668\u8fdb\u884c\u7f51\u7ad9 \u7684\u53d1\u5e03\u5904\u7406&#xff0c;\u53e6\u5916Nginx\u53ef\u4ee5\u4f5c\u4e3a\u53cd\u5411\u4ee3\u7406\u8fdb\u884c\u8d1f\u8f7d\u5747\u8861\u7684\u5b9e\u73b0\u3002<\/p>\n<p>\u53ef\u4ee5\u7406\u89e3Nginx\u662fweb\u670d\u52a1\u5668\u7684\u4e00\u79cd\u5b9e\u73b0\u3002<\/p>\n<ul>\n<li>Web\u670d\u52a1\u5668<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"666\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051815-6a9ba617a6521.png\" width=\"1011\" \/><\/p>\n<p>Nginx \u4f5c\u4e3a Web \u670d\u52a1\u5668\u53ef\u4ee5\u5411\u5404\u79cd\u6d4f\u89c8\u5668\u7b49\u5ba2\u6237\u7aef\u63d0\u4f9b\u6d4f\u89c8\u670d\u52a1&#xff0c;\u6bd4\u5982\u6211\u4eec\u901a\u8fc7\u624b\u673a\u3001 \u7535\u8111\u3001\u5e73\u677f\u53ef\u4ee5\u8bbf\u95ee\u767e\u5ea6\u6765\u5b9e\u73b0\u5bf9web \u670d\u52a1\u5668\u7684\u8bbf\u95ee\u3002<\/p>\n<ul>\n<li>\u6b63\u5411\u4ee3\u7406<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1696\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051815-6a9ba617d2982.png\" width=\"2336\" \/><\/p>\n<p>\u7531\u4e8e\u9632\u706b\u5899\u7684\u539f\u56e0&#xff0c;\u6211\u4eec\u5e76\u4e0d\u80fd\u76f4\u63a5\u8bbf\u95ee\u8c37\u6b4c&#xff0c;\u90a3\u4e48\u6211\u4eec\u53ef\u4ee5\u501f\u52a9VPN\u6765\u5b9e\u73b0&#xff0c;\u8fd9\u5c31 \u662f\u4e00\u4e2a\u7b80\u5355\u7684\u6b63\u5411\u4ee3\u7406\u7684\u4f8b\u5b50\u3002\u8fd9\u91cc\u4f60\u80fd\u591f\u53d1\u73b0&#xff0c;\u6b63\u5411\u4ee3\u7406\u201c\u4ee3\u7406\u201d\u7684\u662f\u5ba2\u6237\u7aef&#xff0c;\u800c\u4e14\u5ba2 \u6237\u7aef\u662f\u77e5\u9053\u76ee\u6807\u7684&#xff0c;\u800c\u76ee\u6807\u662f\u4e0d\u77e5\u9053\u5ba2\u6237\u7aef\u662f\u901a\u8fc7VPN\u8bbf\u95ee\u7684\u3002<\/p>\n<ul>\n<li>\u53cd\u5411\u4ee3\u7406<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"2176\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051818-6a9ba61a199ee.png\" width=\"2080\" \/><\/p>\n<p>\u5f53\u6211\u4eec\u5728\u5916\u7f51\u8bbf\u95ee\u767e\u5ea6\u7684\u65f6\u5019&#xff0c;\u5176\u5b9e\u4f1a\u8fdb\u884c\u4e00\u4e2a\u8f6c\u53d1&#xff0c;\u4ee3\u7406\u5230\u5185\u7f51\u53bb&#xff0c;\u8fd9\u5c31\u662f\u6240\u8c13\u7684 \u53cd\u5411\u4ee3\u7406&#xff0c;\u5373\u53cd\u5411\u4ee3\u7406\u201c\u4ee3\u7406\u201d\u7684\u662f\u670d\u52a1\u5668\u7aef&#xff0c;\u800c\u4e14\u8fd9\u4e00\u4e2a\u8fc7\u7a0b\u5bf9\u4e8e\u5ba2\u6237\u7aef\u800c\u8a00\u662f\u900f\u660e\u7684\u3002<\/p>\n<p>\u603b\u7ed3&#xff1a;<\/p>\n<p>\u6b63\u5411\u4ee3\u7406&#xff1a;\u662f\u300c\u5ba2\u6237\u7aef\u300d\u627e\u4ee3\u7406\u5e2e\u5fd9\u53bb\u8bbf\u95ee\u76ee\u6807\u7f51\u7ad9&#xff08;\u76ee\u6807\u7f51\u7ad9\u4e0d\u77e5\u9053\u771f\u5b9e\u5ba2\u6237\u7aef\u662f\u8c01&#xff09; \u53cd\u5411\u4ee3\u7406&#xff1a;\u662f\u300c\u670d\u52a1\u5668\u7aef\u300d\u7528\u4ee3\u7406\u6765\u63a5\u6536\u5916\u90e8\u8bf7\u6c42&#xff0c;\u518d\u8f6c\u53d1\u7ed9\u5185\u90e8\u7684\u771f\u5b9e\u670d\u52a1\u5668&#xff08;\u5ba2\u6237\u7aef\u4e0d\u77e5\u9053\u80cc\u540e\u6709\u591a\u4e2a\u670d\u52a1\u5668&#xff09;<\/p>\n<p>\u5b89\u88c5<\/p>\n<p># ubuntu \u5b89\u88c5<\/p>\n<p>nginx apt install nginx -y<\/p>\n<p>\u542f\u52a8 nginx \u4f5c\u4e3a\u4e00\u4e2a\u7f51\u7ad9<\/p>\n<p>1.\u67e5\u770b nginx \u662f\u5426\u542f\u52a8<\/p>\n<p>root&#064;ubuntu1:\/data# ps -ef |grep nginx<\/p>\n<p>2.\u5982\u679c\u6ca1\u6709\u542f\u52a8&#xff0c;\u624b\u52a8\u542f\u52a8 nginx<\/p>\n<p>#\u624b\u52a8\u542f\u52a8<\/p>\n<p>nginx<\/p>\n<p>3.\u8bbf\u95ee nginx \u9996\u9875<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"522\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051821-6a9ba61d2a810.png\" width=\"1851\" \/><\/p>\n<p>4.nginx \u8c03\u6574\u914d\u7f6e<\/p>\n<p>vim \/etc\/nginx\/sites-available\/default<\/p>\n<p>5.\u9996\u9875\u5185\u5bb9<\/p>\n<p>cat \/usr\/share\/nginx\/html\/index.html<\/p>\n<p>6. \u505c\u6b62 nginx&#xff0c;kill master \u8fdb\u7a0b\u6765\u6740\u6b7b\u8fdb\u7a0b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"762\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051821-6a9ba61d7fc15.png\" width=\"1164\" \/><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"126\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051821-6a9ba61dd8cb7.png\" width=\"1005\" \/><\/p>\n<h5 id=\"%E6%8B%89%E5%8F%96%20Nginx%20%E9%95%9C%E5%83%8F%EF%BC%8C%E5%90%AF%E5%8A%A8%20Nginx%20%E7%AB%99%E7%82%B9\">\u62c9\u53d6 Nginx \u955c\u50cf&#xff0c;\u542f\u52a8 Nginx \u7ad9\u70b9<\/h5>\n<p>1. \u62c9\u53d6 nginx \u955c\u50cf<\/p>\n<p>\u6211\u4eec\u5230 https:\/\/hub.docker.com\/ \u4e0a\u627e\u5230 nginx \u955c\u50cf<\/p>\n<p>docker pull nginx:1.23.3<\/p>\n<p>2. \u67e5\u770b\u672c\u5730\u662f\u5426\u6709\u8be5\u955c\u50cf<\/p>\n<p>docker images<\/p>\n<p>3. \u8fd0\u884c\u955c\u50cf<\/p>\n<p>docker run &#8211;name nginx1 &#8211;rm -it -p 80:80 nginx:1.23.3 bash<\/p>\n<p>4.\u67e5\u770b\u6211\u4eec\u73b0\u5728\u662f\u5728\u5bb9\u5668\u7684 shell \u91cc\u9762&#xff0c;\u6267\u884c cat \/etc\/*release*\u67e5\u770b\u64cd\u4f5c\u7cfb\u7edf\u4e0d\u662f Ubuntu<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"747\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051821-6a9ba61de9cb2.png\" width=\"1665\" \/><\/p>\n<h4 id=\"%E7%BB%BC%E5%90%88%E5%AE%9E%E6%88%98%E4%BA%8C%EF%BC%9ADocker%20hub%20%E4%B8%8A%E5%88%9B%E5%BB%BA%E8%87%AA%E5%B7%B1%E7%A7%81%E6%9C%89%E4%BB%93%E5%BA%93\">\u7efc\u5408\u5b9e\u6218\u4e8c&#xff1a;Docker hub \u4e0a\u521b\u5efa\u81ea\u5df1\u79c1\u6709\u4ed3\u5e93<\/h4>\n<h5 id=\"%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86\">\u57fa\u7840\u77e5\u8bc6<\/h5>\n<h6 id=\"Busybox\">Busybox<\/h6>\n<p>BusyBox \u662f\u4e00\u4e2a\u96c6\u6210\u4e86\u4e09\u767e\u591a\u4e2a\u6700\u5e38\u7528 Linux \u547d\u4ee4\u548c\u5de5\u5177\u7684\u8f6f\u4ef6\u3002BusyBox \u5305\u542b\u4e86\u4e00 \u4e9b\u7b80\u5355\u7684\u5de5\u5177&#xff0c;\u4f8b\u5982 ls\u3001cat \u548c echo \u7b49\u7b49&#xff0c;\u8fd8\u5305\u542b\u4e86\u4e00\u4e9b\u66f4\u5927\u3001\u66f4\u590d\u6742\u7684\u5de5\u5177&#xff0c;\u4f8b grep\u3001find\u3001mount \u4ee5\u53ca telnet\u3002\u6709\u4e9b\u4eba\u5c06 BusyBox \u79f0\u4e3a Linux \u5de5\u5177\u91cc\u7684\u745e\u58eb\u519b\u5200\u3002 \u7b80\u5355\u7684\u8bf4 BusyBox \u5c31\u597d\u50cf\u662f\u4e2a\u5927\u5de5\u5177\u7bb1&#xff0c;\u5b83\u96c6\u6210\u538b\u7f29\u4e86 Linux \u7684\u8bb8\u591a\u5de5\u5177\u548c\u547d\u4ee4&#xff0c;\u4e5f \u5305\u542b\u4e86 Linux \u7cfb\u7edf\u7684\u81ea\u5e26\u7684 shell\u3002busybox \u662f\u4e00\u4e2a\u96c6\u6210\u4e86\u4e00\u767e\u591a\u4e2a\u6700\u5e38\u7528 linux \u547d\u4ee4\u548c \u5de5\u5177\u7684\u8f6f\u4ef6,\u4ed6\u751a\u81f3\u8fd8\u96c6\u6210\u4e86\u4e00\u4e2a http \u670d\u52a1\u5668\u548c\u4e00\u4e2a telnet \u670d\u52a1\u5668,\u800c\u6240\u6709\u8fd9\u4e00\u5207\u529f\u80fd\u5374 \u53ea\u6709\u533a\u533a 1M \u5de6\u53f3\u7684\u5927\u5c0f.\u56e0\u6d77\u5916\u5e26\u5bbd\u8f83\u5c0f&#xff0c;\u6211\u4eec\u62c9\u53d6\u8be5\u955c\u50cf\u63a8\u9001\u5230\u81ea\u5df1\u7684\u4ed3\u5e93\u3002<\/p>\n<p>#Ubuntu \u5b89\u88c5<\/p>\n<p>apt install -y busybox<\/p>\n<h5 id=\"%E5%88%9B%E5%BB%BA%E8%B4%A6%E5%8F%B7\">\u521b\u5efa\u8d26\u53f7<\/h5>\n<p>\u8fdb\u5165 https:\/\/hub.docker.com\/&#xff0c;\u70b9\u51fb\u6ce8\u518c\u6309\u94ae,\u8f93\u5165\u6ce8\u518c\u4fe1\u606f<\/p>\n<h5 id=\"%E5%88%9B%E5%BB%BA%E4%BB%93%E5%BA%93\">\u521b\u5efa\u4ed3\u5e93<\/h5>\n<p>\u767b\u5f55\u540e\u70b9\u51fb\u4ed3\u5e93&#xff0c;\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u4e2a\u4eba\u4ed3\u5e93<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"480\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051822-6a9ba61e77474.png\" width=\"2559\" \/><\/p>\n<h5 id=\"%E6%8E%A8%E9%80%81%E9%95%9C%E5%83%8F%E5%88%B0%E4%BB%93%E5%BA%93\">\u63a8\u9001\u955c\u50cf\u5230\u4ed3\u5e93<\/h5>\n<p>\u62c9\u53d6 busybox \u955c\u50cf<\/p>\n<p>docker pull busybox<\/p>\n<p>\u7ed9\u955c\u50cf\u6253\u6807\u7b7e<\/p>\n<p>docker tag busybox:latest maxhou\/mybusybox:v0.1<\/p>\n<p>\u6b64\u65f6\u67e5\u770b\u6211\u4eec\u591a\u4e86\u4e2a\u955c\u50cf<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1120\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051822-6a9ba61ee39e1.png\" width=\"3584\" \/><\/p>\n<p>\u767b\u5f55&#xff0c;\u63a8\u9001\u955c\u50cf\u5230\u4ed3\u5e93<\/p>\n<p>docker login -u XXX<\/p>\n<p>docker push maxhou\/mybusybox:v0.1<\/p>\n<p>\u5728\u6211\u4eec\u7684 docker hub \u4ed3\u5e93\u91cc\u9762\u67e5\u770b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"261\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051826-6a9ba62263678.png\" width=\"852\" \/><\/p>\n<p>\u9000\u51fa<\/p>\n<p>docker logout<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x1f308;\u4e2a\u4eba\u4e3b\u9875&#xff1a;\u79e6jh__https:\/\/blog.csdn.net\/qinjh_?spm1010.2135.3001.5343 &#x1f525;\u00a0\u7cfb\u5217\u4e13\u680f&#xff1a;Docker_\u79e6jh_\u7684\u535a\u5ba2-CSDN\u535a\u5ba2 \u200b\u200b\u200b\u200b\u200b<br \/>\n\u76ee\u5f55<br \/>\nDocker Registry&#xff08;\u955c\u50cf\u4ed3\u5e93&#xff09;<br \/>\n\u4ec0\u4e48\u662fDocker Registry<br \/>\n\u955c\u50cf\u4ed3\u5e93\u5206\u7c7b<br \/>\n\u955c\u50cf\u4ed3\u5e93\u5de5\u4f5c\u673a\u5236<br \/>\n\u955c\u50cf\u4ed3\u5e93\u547d\u4ee4<br \/>\n\u547d\u4ee4\u6e05\u5355<br \/>\ndocker login<br \/>\ndock<\/p>\n","protected":false},"author":2,"featured_media":100836,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,121],"topic":[],"class_list":["post-100850","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-docker","tag-121"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010Docker\u3011\u955c\u50cf\u4ed3\u5e93 - \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\/100850.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Docker\u3011\u955c\u50cf\u4ed3\u5e93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"&#x1f308;\u4e2a\u4eba\u4e3b\u9875&#xff1a;\u79e6jh__https:\/\/blog.csdn.net\/qinjh_?spm1010.2135.3001.5343 &#x1f525;\u00a0\u7cfb\u5217\u4e13\u680f&#xff1a;Docker_\u79e6jh_\u7684\u535a\u5ba2-CSDN\u535a\u5ba2 \u200b\u200b\u200b\u200b\u200b \u76ee\u5f55 Docker Registry&#xff08;\u955c\u50cf\u4ed3\u5e93&#xff09; \u4ec0\u4e48\u662fDocker Registry \u955c\u50cf\u4ed3\u5e93\u5206\u7c7b \u955c\u50cf\u4ed3\u5e93\u5de5\u4f5c\u673a\u5236 \u955c\u50cf\u4ed3\u5e93\u547d\u4ee4 \u547d\u4ee4\u6e05\u5355 docker login dock\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/100850.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-05T05:18:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051806-6a9ba60e2cc2b.gif\" \/>\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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/100850.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/100850.html\",\"name\":\"\u3010Docker\u3011\u955c\u50cf\u4ed3\u5e93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-05T05:18:27+00:00\",\"dateModified\":\"2026-09-05T05:18:27+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/100850.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/100850.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/100850.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Docker\u3011\u955c\u50cf\u4ed3\u5e93\"}]},{\"@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":"\u3010Docker\u3011\u955c\u50cf\u4ed3\u5e93 - \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\/100850.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010Docker\u3011\u955c\u50cf\u4ed3\u5e93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"&#x1f308;\u4e2a\u4eba\u4e3b\u9875&#xff1a;\u79e6jh__https:\/\/blog.csdn.net\/qinjh_?spm1010.2135.3001.5343 &#x1f525;\u00a0\u7cfb\u5217\u4e13\u680f&#xff1a;Docker_\u79e6jh_\u7684\u535a\u5ba2-CSDN\u535a\u5ba2 \u200b\u200b\u200b\u200b\u200b \u76ee\u5f55 Docker Registry&#xff08;\u955c\u50cf\u4ed3\u5e93&#xff09; \u4ec0\u4e48\u662fDocker Registry \u955c\u50cf\u4ed3\u5e93\u5206\u7c7b \u955c\u50cf\u4ed3\u5e93\u5de5\u4f5c\u673a\u5236 \u955c\u50cf\u4ed3\u5e93\u547d\u4ee4 \u547d\u4ee4\u6e05\u5355 docker login dock","og_url":"https:\/\/www.wsisp.com\/helps\/100850.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-05T05:18:27+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260905051806-6a9ba60e2cc2b.gif"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/100850.html","url":"https:\/\/www.wsisp.com\/helps\/100850.html","name":"\u3010Docker\u3011\u955c\u50cf\u4ed3\u5e93 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-05T05:18:27+00:00","dateModified":"2026-09-05T05:18:27+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/100850.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/100850.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/100850.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010Docker\u3011\u955c\u50cf\u4ed3\u5e93"}]},{"@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\/100850","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=100850"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/100850\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/100836"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=100850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=100850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=100850"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=100850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}