{"id":113160,"date":"2026-10-05T15:59:33","date_gmt":"2026-10-05T07:59:33","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/113160.html"},"modified":"2026-10-05T15:59:33","modified_gmt":"2026-10-05T07:59:33","slug":"docker%e8%bf%98%e8%83%bd%e8%bf%99%e4%b9%88%e7%94%a8%ef%bc%9f%ef%bc%9f%ef%bc%9f-2","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/113160.html","title":{"rendered":"Docker\u8fd8\u80fd\u8fd9\u4e48\u7528\uff1f\uff1f\uff1f"},"content":{"rendered":"<h2>Docker\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e\u548c\u57fa\u7840\u4f7f\u7528\u6559\u7a0b<\/h2>\n<p>  \u4e2a\u4eba\u4e3b\u9875&#xff1a;<br \/>\n &gt; \u6211\u4e0d\u4f1a\u8d77\u540d\u5b57322 &lt; &#xff08;\u6b22\u8fce\u5404\u4f4d\u5927\u4f6c\u8385\u4e34&#x1f60a;&#xff09; <\/p>\n<p>  \u5176\u4ed6\u680f\u76ee&#xff1a;<br \/>\n &gt; \u6280\u672f\u6808\u5b66\u4e60\u7b14\u8bb0 &lt; <\/p>\n<p>  \u5176\u4ed6\u680f\u76ee&#xff1a;<br \/>\n &gt; \u529b\u6263Hot100\u9898\u76ee\u89e3\u6790 &lt; <\/p>\n<p>  \u5176\u4ed6\u680f\u76ee&#xff1a;<br \/>\n &gt; Go\u9879\u76ee\u5b66\u4e60\u7b14\u8bb0 &lt; <\/p>\n<hr \/>\n<hr \/>\n<hr \/>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>Docker\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e\u548c\u57fa\u7840\u4f7f\u7528\u6559\u7a0b<\/li>\n<li>\n<ul>\n<li>1. \u5b89\u88c5docker<\/li>\n<li>2. Docker\u5e38\u89c1\u547d\u4ee4<\/li>\n<li>3. Dockerfile<\/li>\n<li>4. \u63a8\u9001\u955c\u50cf\u5230Docker hub<\/li>\n<li>5. Docker\u7f51\u7edc<\/li>\n<li>\n<ul>\n<li>compose<\/li>\n<\/ul>\n<\/li>\n<li>\u8f6c\u8f7d\u58f0\u660e<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>1. \u5b89\u88c5docker<\/h3>\n<p>\u672c\u4eba\u662fwindows\u5b89\u88c5docker&#xff0c;\u4f46\u662fdocker\u8981\u5728linux\u73af\u5883\u4e0b\u4f7f\u7528&#xff0c;\u6240\u4ee5\u6211\u4eec\u5fc5\u987b\u8981\u6a21\u62df\u4e00\u4e2alinux\u73af\u5883&#xff0c;\u8fd9\u91cc\u6211\u4eec\u4f7f\u7528wsl&#xff0c;\u56e0\u4e3awsl\u6bd4\u8f83\u8f7b\u91cf&#xff08;\u5982\u679c\u662flinux\u53ef\u4ee5\u76f4\u63a5\u5b89\u88c5&#xff09;<\/p>\n<li>\u6309\u4e0bwin\u952e\u6253\u5f00\u83dc\u5355&#xff0c;\u641c\u7d22\u542f\u7528\u6216\u5173\u95edWindows\u529f\u80fd<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075926-6ac358de96bdd.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\n<p>\u6253\u5f00\u8be5\u9009\u9879&#xff0c;\u91cd\u542f\u7535\u8111 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075927-6ac358df4f543.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u5b89\u88c5wsl<\/p>\n<\/li>\n<li>\n<p>\u53f3\u952e\u5f00\u59cb\u83dc\u5355&#xff0c;\u6253\u5f00Powershell&#xff0c;\u6216\u8005\u6309\u4f4fwin&#043;R\u8f93\u5165powershell<\/p>\n<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075927-6ac358df62331.png\" alt=\"\" \/><\/p>\n<li>\u8f93\u5165\u547d\u4ee4wsl &#8211;update &#8211;web-download<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075927-6ac358df76394.png\" alt=\"\u5916\u94fe\u56fe\u7247\u8f6c\u5b58\u5931\u8d25,\u6e90\u7ad9\u53ef\u80fd\u6709\u9632\u76d7\u94fe\u673a\u5236,\u5efa\u8bae\u5c06\u56fe\u7247\u4fdd\u5b58\u4e0b\u6765\u76f4\u63a5\u4e0a\u4f20\" \/><\/p>\n<li>\u5b89\u88c5Docker Desktop&#xff08;\u53ef\u4ee5\u548c\u6211\u4e00\u6837\u5728\u5fae\u8f6f\u5546\u5e97\u4e0b\u8f7d&#xff0c;\u4e5f\u53ef\u4ee5\u5728\u5b98\u7f51\u4e0b\u8f7d&#xff09;\u5b89\u88c5\u76f4\u63a5\u9ed8\u8ba4\u4e0b\u4e00\u6b65\u5373\u53ef<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075927-6ac358df8bf4a.png\" alt=\"\" \/><\/p>\n<li>\u6309\u4f4fwin&#043;r\u8f93\u5165cmd&#xff0c;\u6253\u5f00\u4e4b\u540e\u8f93\u5165docker &#8211;version&#xff0c;\u5982\u679c\u6b63\u786e\u8f93\u51fa\u7248\u672c\u53f7\u5c31\u7ed3\u675f\u4e86<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075928-6ac358e03d549.png\" alt=\"\u5916\u94fe\u56fe\u7247\u8f6c\u5b58\u5931\u8d25,\u6e90\u7ad9\u53ef\u80fd\u6709\u9632\u76d7\u94fe\u673a\u5236,\u5efa\u8bae\u5c06\u56fe\u7247\u4fdd\u5b58\u4e0b\u6765\u76f4\u63a5\u4e0a\u4f20\" \/><\/p>\n<h3>2. Docker\u5e38\u89c1\u547d\u4ee4<\/h3>\n<li>docker\u9700\u8981\u4fee\u6539\u4e00\u4e0b\u914d\u7f6e\u6587\u4ef6&#xff0c;\u5426\u5219\u5728\u56fd\u5185\u65e0\u6cd5\u76f4\u63a5\u4e0b\u8f7d\u955c\u50cf <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075928-6ac358e04e859.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075929-6ac358e10d87a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\/\/\u590d\u5236\u4e0b\u9762\u7684\u914d\u7f6e\u7136\u540e\u5220\u9664\u539f\u6587\u7c98\u8d34\u5373\u53ef<br \/>\n{<br \/>\n  &#034;registry-mirrors&#034;: [<br \/>\n    &#034;https:\/\/docker.1ms.run&#034;,<br \/>\n    &#034;https:\/\/docker.m.daocloud.io&#034;,<br \/>\n    &#034;https:\/\/docker.xuanyuan.me&#034;<br \/>\n  ]<br \/>\n}<\/p>\n<li>docker pull xxxx<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075929-6ac358e1c773f.png\" alt=\"image-20260917224658214\" \/><\/p>\n<p>docker pull \u4ee3\u8868\u4e0b\u8f7d\u955c\u50cf&#xff0c;\u540e\u9762\u662f\u5177\u4f53\u7684\u955c\u50cf\u540d&#xff0c;\u7b2c\u4e00\u4e2a\u662fdocker.io\u662fdocker\u4ed3\u5e93\u7684\u6ce8\u518c\u8868\u5730\u5740&#xff0c;\u8fd9\u662f\u5b98\u65b9\u4ed3\u5e93&#xff0c;\u53ef\u4ee5\u7701\u7565\u5730\u5740 &#xff1b;library\u662f\u547d\u540d\u7a7a\u95f4&#xff0c;\u8fd9\u91cc\u662f\u5b98\u65b9\u7684\u547d\u540d\u7a7a\u95f4&#xff0c;\u4e5f\u53ef\u4ee5\u7701\u7565\u4e0d\u5199&#xff0c;\u540c\u65f6&#xff0c;\u5982\u679c\u8981\u662f\u4e2a\u4eba\u4e0a\u4f20\u81ea\u5df1\u7684\u955c\u50cf\u5230\u4ed3\u5e93&#xff0c;\u89c4\u5b9a\u8981\u6dfb\u52a0\u81ea\u5df1\u7684\u547d\u540d\u7a7a\u95f4&#xff0c;\u5426\u5219\u955c\u50cf\u7684\u540d\u5b57\u90fd\u4e00\u6837&#xff0c;\u96be\u4ee5\u7ba1\u7406&#xff1b;latest\u662f\u955c\u50cf\u7684\u7248\u672c\u53f7&#xff0c;\u5982\u679c\u4e0d\u5199\u5c31\u662f\u9ed8\u8ba4\u83b7\u53d6\u6700\u65b0\u7684\u7248\u672c\u53f7&#xff0c;\u6240\u4ee5\u4e0a\u9762\u7684\u4f8b\u5b50\u6700\u540e\u53ef\u4ee5\u5316\u7b80\u4e3adocker pull nginx&#xff0c;\u8868\u793a\u4ece\u5b98\u65b9\u4ed3\u5e93\u7684\u5b98\u65b9\u547d\u540d\u7a7a\u95f4\u4e0b\u8f7dnginx\u7684\u6700\u65b0\u7248\u672c\u7684\u955c\u50cf<\/p>\n<p>\u5982\u679c\u60f3\u8981\u641c\u7d22\u4e00\u4e9b\u955c\u50cf&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u53bbdocker hub\u7f51\u7ad9&#xff0c;\u514d\u767b\u9646\u5373\u53ef\u4f7f\u7528 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075930-6ac358e204743.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<li>\n<p>docker images \u53ef\u4ee5\u83b7\u53d6\u4e0b\u8f7d\u8fc7\u7684\u955c\u50cf&#xff0c;\u65b9\u4fbf\u7ba1\u7406&#xff0c;\u5982\u679c\u4e0d\u4f7f\u7528\u955c\u50cf\u53ef\u4ee5\u53ca\u65f6\u5220\u9664&#xff0c;\u907f\u514d\u5360\u7528\u5b58\u50a8 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075930-6ac358e2b5922.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>docker rmi imageID&#xff08;rm\u662fremove&#xff0c;i\u662fimage&#xff09; imageID\u6539\u4e3a\u4f60\u60f3\u8981\u5220\u9664\u7684\u955c\u50cfID&#xff0c;\u6211\u4eec\u770b\u4e0a\u9762\u7684\u90a3\u4e2a\u622a\u56fe&#xff0c;\u53ef\u4ee5\u770b\u5230\u6bcf\u4e00\u4e2a\u955c\u50cf\u90fd\u6709\u4e00\u4e2aID&#xff0c;\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e9bID\u66f4\u65b9\u4fbf\u7684\u7ba1\u7406\u955c\u50cf<\/p>\n<\/li>\n<li>\n<p>docker rm \u5bb9\u5668ID \u8fd9\u662f\u5220\u9664\u5bb9\u5668&#xff0c;\u5982\u679c\u6211\u4eec\u8981\u5220\u9664\u8fd0\u884c\u7684\u5bb9\u5668&#xff0c;\u8fd8\u8981\u5728rm\u52a0\u4e0a -f &#xff08;\u5f3a\u5236\u5220\u9664&#xff09;\u624d\u884c<\/p>\n<\/li>\n<li>\n<p>docker run nginx \u4f7f\u7528nginx\u955c\u50cf\u521b\u5efa\u5e76\u8fd0\u884c\u5bb9\u5668&#xff08;\u5176\u5b9e\u4e5f\u53ef\u4ee5\u7701\u7565\u4e0a\u9762\u7684docker pull\u547d\u4ee4&#xff0c;\u56e0\u4e3a\u5f53\u6211\u4eecrun\u7684\u65f6\u5019\u5982\u679c\u53d1\u73b0\u6ca1\u6709\u8fd9\u4e2a\u955c\u50cf\u4f1a\u81ea\u52a8\u62c9\u53d6&#xff09; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075930-6ac358e2d99b5.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>docker ps<\/p>\n<p>\u67e5\u770b\u6b63\u5728\u8fd0\u884c\u7684\u5bb9\u5668&#xff0c;\u540e\u9762\u518d\u52a0-a\u5c31\u53ef\u4ee5\u67e5\u770b\u6240\u6709\u7684\u5bb9\u5668&#xff0c;\u65e0\u8bba\u662f\u5426\u8fd0\u884c<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075931-6ac358e30d523.png\" alt=\"\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075931-6ac358e327577.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>docker run -d nginx \u52a0\u4e00\u4e2a -d \u53ef\u4ee5\u5728\u540e\u53f0\u8fd0\u884c&#xff0c;\u4e0d\u4f1a\u963b\u585e\u5f53\u524d\u7684\u7a97\u53e3<\/p>\n<\/li>\n<li>\n<p>docker run -p xx:xx nginx \u5176\u4e2dxx\u662f\u7aef\u53e3\u53f7&#xff0c;\u524d\u9762\u662f\u5bbf\u4e3b\u673a\u7684\u7aef\u53e3&#xff0c;\u540e\u9762\u662fdocker\u7684\u7aef\u53e3&#xff0c;\u8fd9\u4e00\u6b65\u64cd\u4f5c\u662f\u628a\u5bbf\u4e3b\u673a\u7684\u7aef\u53e3\u548cdocker\u7684\u7aef\u53e3\u7ed1\u5b9a&#xff0c;\u5426\u5219\u65e0\u6cd5\u5916\u90e8\u8bbf\u95ee<\/p>\n<\/li>\n<li>\n<p>docker run -d -p 80:80 -v \/D:desktop\/nginx\/html nginx \u6302\u8f7d\u5377&#xff0c;\u4f5c\u7528\u662f\u628a\u5bbf\u4e3b\u673a\/D:desktop\/nginx\/html&#xff08;\u53ef\u66ff\u6362&#xff09;\u6587\u4ef6\u5939\u548cdocker\u7684\u6587\u4ef6\u5939\u7ed1\u5b9a&#xff0c;\u4e00\u65b9\u4fee\u6539\u53e6\u5916\u4e00\u65b9\u4e5f\u4f1a\u4fee\u6539&#xff0c;\u5f53docker\u7684\u5bb9\u5668\u88ab\u5220\u9664\u7684\u65f6\u5019&#xff0c;\u6570\u636e\u4f1a\u4fdd\u7559\u5728\u5bbf\u4e3b\u673a\u7684\u6587\u4ef6\u5939\u5185&#xff0c;\u5b9e\u73b0\u4e86\u6570\u636e\u6301\u4e45\u5316<\/p>\n<\/li>\n<li>\n<p>docker run -e -e\u53ef\u4ee5\u7528\u6765\u4f20\u9012\u73af\u5883\u53d8\u91cf \u6bd4\u5982\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u6570\u636e\u5e93&#xff0c;\u80af\u5b9a\u8981\u4f20\u5165\u7528\u6237\u540d\u548c\u5bc6\u7801&#xff0c;\u6211\u4eec\u5c31\u53ef\u4ee5\u8fd9\u6837<\/p>\n<p> docker run -d -p 13306:13306 \\\\<br \/>\n-e MYSQL_USERNAME&#061;root \\\\<br \/>\n-e MYSQL_PASSWORD&#061;1234 \\\\<br \/>\nMYSQL\n <\/li>\n<li>\n<p>docker run &#8211; -name my_nginx nginx \u8fd9\u6837\u662f\u7ed9\u5bb9\u5668\u8d77\u4e00\u4e2a\u72ec\u4e00\u65e0\u4e8c\u7684\u540d\u5b57&#xff0c;\u5728\u5bbf\u4e3b\u673a\u4e0a\u4e0d\u80fd\u91cd\u590d\u3002\u8fd9\u6837\u7684\u8bdd\u5c31\u53ef\u4ee5\u7528\u8d77\u7684\u540d\u5b57\u6765\u64cd\u4f5c\u5bb9\u5668&#xff08;\u6bd4\u5982rm&#xff09;&#xff0c;\u4e0d\u9700\u8981\u5bb9\u5668ID&#xff0c;\u65b9\u4fbf\u8bb0\u5fc6<\/p>\n<\/li>\n<li>\n<p>docker run -it &#8211; -rm alpine -it \u662f\u6307\u53ef\u4ee5\u8fdb\u5165\u5bb9\u5668\u5185\u8fdb\u884c\u4ea4\u4e92&#xff0c;- -rm\u662f\u5bb9\u5668\u505c\u6b62\u4e4b\u540e\u76f4\u63a5\u5220\u9664&#xff0c;\u4e00\u822c\u7528\u6765\u4e34\u65f6\u8c03\u8bd5\u5bb9\u5668<\/p>\n<\/li>\n<li>\n<p>docker run -d &#8211; -restart always&#xff08;unless-stopped&#xff09; nginx restart\u6307\u7684\u662f\u91cd\u542f&#xff0c;always\u662f\u4e00\u76f4&#xff0c;\u610f\u601d\u5c31\u662f\u5bb9\u5668\u4e00\u505c\u6b62\u5c31\u91cd\u542f&#xff0c;unless-stopped\u4e5f\u662f\u505c\u6b62\u5c31\u91cd\u542f&#xff0c;\u4f46\u662f\u5f53\u624b\u52a8\u505c\u6b62\u4e4b\u540e\u5c31\u4e0d\u4f1a\u91cd\u542f<\/p>\n<\/li>\n<li>\n<p>docker start(stop) docker start(stop)\u540e\u9762\u5199\u5bb9\u5668\u7684ID\u6216\u8005\u540d\u5b57\u5c31\u53ef\u4ee5\u5173\u95ed\u6216\u8005\u5f00\u542f\u5bb9\u5668&#xff0c;docker run\u662f\u4f7f\u7528\u955c\u50cf\u5236\u4f5c\u4e00\u4e2a\u5bb9\u5668&#xff0c;\u4e00\u76f4docker run\u5c31\u4f1a\u4ea7\u751f\u5f88\u591a\u7684\u5bb9\u5668&#xff0c;\u800cstart\u548cstop\u5c31\u662f\u5728\u539f\u6709\u5bb9\u5668\u64cd\u4f5c\u7684\u547d\u4ee4&#xff0c;\u4e0b\u9762\u7684\u4f8b\u5b50\u5c31\u53ef\u4ee5\u770b\u51fa\u6765\u4e86 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075931-6ac358e375712.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>docker inspect aa8806e32fe0<\/p>\n<p>\u6211\u4eec\u5728\u4f7f\u7528\u4e00\u6bb5\u65f6\u95f4\u4e4b\u540e\u53ef\u80fd\u4f1a\u5fd8\u8bb0\u5bb9\u5668\u5728\u542f\u52a8\u7684\u65f6\u5019\u6267\u884c\u4e86\u54ea\u4e9b\u64cd\u4f5c&#xff0c;\u6709\u6ca1\u6709\u6302\u8f7d\u5377&#xff0c;\u6620\u5c04\u7684\u7aef\u53e3\u5728\u54ea\u91cc&#xff0c;\u6211\u4eec\u5c31\u53ef\u4ee5\u6267\u884c\u8fd9\u4e2a\u64cd\u4f5c&#xff0c;\u7136\u540e\u8fd9\u4e2a\u64cd\u4f5c\u4f1a\u8fd4\u56de\u4e00\u5927\u4e32\u6570\u636e&#xff0c;\u6211\u4eec\u76f4\u63a5\u4e22\u7ed9AI\u8ba9AI\u5206\u6790\u4e00\u4e0b\u5c31\u884c<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075931-6ac358e3a19d8.png\" alt=\"\u5916\u94fe\u56fe\u7247\u8f6c\u5b58\u5931\u8d25,\u6e90\u7ad9\u53ef\u80fd\u6709\u9632\u76d7\u94fe\u673a\u5236,\u5efa\u8bae\u5c06\u56fe\u7247\u4fdd\u5b58\u4e0b\u6765\u76f4\u63a5\u4e0a\u4f20\" \/><\/p>\n<\/li>\n<li>\n<p>docker create -p 80:80 nginx create\u548crun\u90fd\u4f1a\u521b\u5efa\u5bb9\u5668&#xff0c;\u4f46\u662f\u4e0d\u4f1a\u76f4\u63a5\u8fd0\u884c\u5bb9\u5668&#xff0c;\u624b\u52a8\u6267\u884cstart\u547d\u4ee4\u5c31\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884c<\/p>\n<\/li>\n<li>\n<p>docker logs \u5bb9\u5668ID -f \u4e0d\u52a0-f \u4e5f\u53ef\u4ee5\u67e5\u770b\u65e5\u5fd7&#xff0c;\u52a0\u4e0a-f \u5c31\u662f\u6eda\u52a8\u67e5\u770b\u65e5\u5fd7&#xff0c;\u53ef\u4ee5\u770b\u5230\u52a0\u4e0a-f \u4e4b\u540e\u5149\u6807\u8fd8\u5728\u8fd9\u91cc\u95ea\u52a8&#xff0c;\u65e5\u5fd7\u4f1a\u5b9e\u65f6\u66f4\u65b0 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075931-6ac358e3d78bb.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>docker top \u5bb9\u5668ID \u53ef\u4ee5\u5728\u5bbf\u4e3b\u673a\u76f4\u63a5\u67e5\u770b\u5bb9\u5668\u5185\u90e8\u8fdb\u884c\u7684\u8fdb\u7a0b&#xff0c;\u5982\u679c\u6211\u4eec\u5bb9\u5668\u5185\u90e8\u7684linux\u73af\u5883\u662f\u7cbe\u7b80\u7248&#xff0c;\u65e2\u6709\u53ef\u80fd\u6ca1\u6709\u4e0b\u8f7d\u4e00\u4e9b\u8f6f\u4ef6\u5305&#xff0c;\u5982\u679c\u5df2\u7ecf\u4e0b\u8f7d\u4e86\u8f6f\u4ef6\u5305&#xff0c;\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884cdocker exec aa8806e32fe0 ps -ef <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075931-6ac358e3e542a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>docker exec -it xxxx&#xff08;\u5bb9\u5668ID&#xff09; \/bin\/sh \u8fdb\u5165\u5bb9\u5668\u5185\u90e8&#xff0c;\u83b7\u5f97\u4ea4\u4e92\u5f0f\u7684\u5417&#xff0c;\u547d\u4ee4\u884c\u73af\u5883&#xff0c;\u5f88\u591a\u5bb9\u5668\u5185\u90e8\u90fd\u662f\u4e00\u4e2a\u7cbe\u7b80\u7684linux\u64cd\u4f5c\u7cfb\u7edf&#xff0c;\u6ca1\u6709\u8f6f\u4ef6\u5305&#xff0c;\u6240\u4ee5\u6211\u4eec\u5982\u679c\u9047\u5230\u4e00\u4e9b\u65e0\u6cd5\u6267\u884c\u7684\u547d\u4ee4\u5c31\u5f97\u4e0b\u8f7d\u4e00\u4e9b\u8f6f\u4ef6\u5305 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075932-6ac358e42277a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<h3>3. Dockerfile<\/h3>\n<p>FROM python:3.13-slim\/\/\u8fd9\u91cc\u7684\u610f\u601d\u662f\u5efa\u7acb\u4e00\u4e2a\u57fa\u7840\u7684\u955c\u50cf&#xff0c;\u6211\u7684\u4ee3\u7801\u662fpython\u7684&#xff0c;\u6240\u4ee5\u6211\u5728python\u7684\u57fa\u7840\u4e0a\u5efa\u7acb&#xff0c;\u4e0a\u9762\u5199\u7684slim\u662f\u4e00\u4e2alinux\u7cfb\u7edf&#xff0c;\u5185\u7f6e\u4e863.13python<br \/>\nWORKDIR \/app\/\/\u8fd9\u91cc\u7684\u5176\u5b9e\u7c7b\u4f3c\u4e8ecd&#xff0c;\u540e\u9762\u6240\u6709\u7684\u64cd\u4f5c\u90fd\u5728\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u6267\u884c&#xff0c;\u5982\u679c\u4e0d\u5b58\u5728\/app\u76ee\u5f55\u5c31\u81ea\u52a8\u521b\u5efa<\/p>\n<p>COPY . .\/\/\u7b2c\u4e00\u4e2a\u70b9\u4ee3\u8868\u662f\u5f53\u524d\u5bbf\u4e3b\u673a\u7684\u76ee\u5f55&#xff0c;\u7b2c\u4e8c\u4e2a\u70b9\u4ee3\u8868\u955c\u50cf\u5185\u7684\u76ee\u5f55<\/p>\n<p>RUN pip install -r requirement.txt\/\/\u5b89\u88c5\u4f9d\u8d56&#xff0c;RUN\u8868\u793a\u8981\u5728\u955c\u50cf\u91cc\u9762\u6267\u884c<\/p>\n<p>EXPOSE 8000\/\/\u8fd9\u91cc\u7684\u610f\u601d\u662f\u58f0\u660e\u955c\u50cf\u8fd0\u884c\u7684\u7aef\u53e3\u662f\u57288000\u7aef\u53e3&#xff0c;\u4e3b\u8981\u662f\u4e3a\u4e86\u7ed9\u522b\u4eba\u4f7f\u7528\u955c\u50cf\u7684\u65f6\u5019\u63d0\u9192&#xff0c;\u5b9e\u9645\u4f7f\u7528\u7684\u65f6\u5019\u8fd8\u662f\u4ee5-p\u4e3a\u51c6&#xff0c;\u8fd9\u91cc\u4e0d\u5199\u4e5f\u4e0d\u4f1a\u5f71\u54cd\u7a0b\u5e8f\u8fd0\u884c&#xff0c;\u4f46\u662f\u5728-p xx:xx\u91cc\u9762&#xff0c;\u53f3\u8fb9\u7684xx\u5fc5\u987b\u5199\u548c\u7a0b\u5e8f\u5b9e\u9645\u76d1\u542c\u7684\u7aef\u53e3\u4e00\u81f4<\/p>\n<p>CMD [&#034;python3&#034;,&#034;main.py&#034;]\/\/CMD \u662f\u5bb9\u5668\u4f7f\u7528\u7684\u65f6\u5019\u7684\u9ed8\u8ba4\u542f\u52a8\u547d\u4ee4&#xff0c;\u4e5f\u5c31\u662f\u5bb9\u5668\u4e00\u542f\u52a8\u5c31\u4f1a\u6267\u884c\u8fd9\u4e2a\u547d\u4ee4&#xff0c;\u547d\u4ee4\u6700\u597d\u5199\u6210\u6570\u7ec4\u7684\u5f62\u5f0f&#xff0c;\u4e2d\u95f4\u4e0d\u5199\u7a7a\u683c&#xff0c;<\/p>\n<p>\/\/ENTRYPOINT[&#034;python3&#034;,&#034;main.py&#034;]\u8fd9\u4e2a\u548cCMD \u5dee\u4e0d\u591a&#xff0c;\u4f46\u662f\u4f18\u5148\u7ea7\u66f4\u9ad8&#xff0c;\u4e0d\u5bb9\u6613\u88ab\u8986\u76d6<\/p>\n<p>\u5199\u597dDockerfile\u4e4b\u540e\u5c31\u53ef\u4ee5\u5f00\u59cb\u6784\u5efa\u955c\u50cf<\/p>\n<li>\u5728\u5f53\u524d\u76ee\u5f55\u6267\u884cdocker build -t docker_test(\u8fd9\u91cc\u662f\u955c\u50cf\u7684\u540d\u5b57,\u540e\u9762\u8fd8\u53ef\u4ee5\u9009\u62e9\u52a0\u4e00\u4e2a:\u5199\u7248\u672c\u53f7) .(\u6700\u540e\u5199\u4e00\u4e2a\u70b9\u8868\u793a\u5728\u5f53\u524d\u76ee\u5f55)<\/li>\n<li>docker run-d -p 8000:8000 docker_test\u8fd9\u6837\u5c31\u7528\u6211\u4eec\u81ea\u5df1\u6784\u5efa\u7684\u955c\u50cf\u505a\u4e86\u4e00\u4e2a\u5bb9\u5668\u5e76\u4e14\u8fd0\u884c\u8d77\u6765\u4e86<\/li>\n<h3>4. \u63a8\u9001\u955c\u50cf\u5230Docker hub<\/h3>\n<li>\n<p>\u5230Docker hun\u6ce8\u518c\u81ea\u5df1\u7684\u8d26\u53f7 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075932-6ac358e42d9a8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>docker login<\/p>\n<p>\u5728cmd\u8f93\u5165docker login&#xff0c;\u767b\u5f55\u4e00\u4e0b <img decoding=\"async\" src=\"2026-10-05e5b3g4j0vux.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5148\u8f93\u5165\u81ea\u5df1\u7684\u7528\u6237\u540d&#xff0c;\u7136\u540e\u6309\u4f4fCTRL\u70b9\u51fb\u94fe\u63a5 <img decoding=\"async\" src=\"2026-10-05q33nskvvwaw.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<p><img decoding=\"async\" src=\"2026-10-05zyd0wqcbvtf.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> <img decoding=\"async\" src=\"2026-10-05eeuqcd5s40m.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u628a\u8fd9\u4e2a\u590d\u5236\u4e4b\u540e\u8f93\u5165\u5230\u524d\u9762\u7ec8\u7aef\u7684password\u540e\u9762\u5373\u53ef&#xff0c;\u7b49\u5f85&#xff0c;\u51fa\u73b0Login Successed\u5373\u53ef<\/p>\n<li>\n<p>docker build -t your_name&#xff08;\u8fd9\u91cc\u8f93\u5165\u4f60\u7684\u7528\u6237\u540d&#xff09;\/docker_test \u73b0\u5728\u6211\u4eec\u4f7f\u7528Dockerfile\u91cd\u65b0\u6784\u5efa\u4e00\u4e2a\u955c\u50cf&#xff0c;\u56e0\u4e3a\u5728\u63a8\u9001\u955c\u50cf\u7684\u65f6\u5019\u5fc5\u987b\u8981\u5199\u4e0a\u81ea\u5df1\u7684\u7528\u6237\u540d<\/p>\n<\/li>\n<li>\n<p>docker push your_name&#xff08;\u8fd9\u91cc\u8f93\u5165\u4f60\u7684\u7528\u6237\u540d&#xff09;\/docker_test<\/p>\n<p>push\u540e\u9762\u662f\u955c\u50cf\u7684\u540d\u5b57<\/p>\n<\/li>\n<li>\n<p>\u63a8\u9001\u6210\u529f\u4e4b\u540e\u5c31\u53ef\u4ee5\u5728docker hub\u4e0a\u9762\u641c\u7d22\u7528\u6237\u540d\/\u955c\u50cf\u540d\u5b57 \u6765\u67e5\u8be2 <img decoding=\"async\" src=\"2026-10-05x1ybvpsuc1t.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<h3>5. Docker\u7f51\u7edc<\/h3>\n<p>docker\u7f51\u7edc\u6709\u4e24\u79cd\u6a21\u5f0f&#xff0c;\u4e00\u79cd\u662fbridge&#xff0c;\u4e00\u79cd\u662fhost&#xff0c;\u6211\u4eec\u5728\u4e00\u822c\u4f7f\u7528\u7684\u65f6\u5019\u4f7f\u7528bridge\u6bd4\u8f83\u5e38\u89c1&#xff0c;\u8fd9\u79cd\u5c31\u9700\u8981\u505a\u7aef\u53e3\u6620\u5c04&#xff0c;docker\u5185\u90e8\u7684\u7f51\u7edc\u4e0e\u5bbf\u4e3b\u673a\u7684\u7f51\u8def\u662f\u4e0d\u540c\u7684&#xff0c;\u5f97\u901a\u8fc7\u6865\u63a5\u7684\u65b9\u5f0f\u901a\u4fe1\u3002\u53e6\u5916\u4e00\u79cdhost\u5f62\u5f0f\u53ef\u4ee5\u4e0d\u9700\u8981\u7aef\u53e3\u6620\u5c04&#xff0c;docker\u7684\u7f51\u7edc\u76f4\u63a5\u4f7f\u7528\u5bbf\u4e3b\u673a\u7684\u7f51\u7edc&#xff0c;\u8fd9\u79cd\u65b9\u5f0f\u53ef\u4ee5\u89e3\u51b3\u5f88\u591a\u65f6\u5019\u51fa\u73b0\u7684\u7f51\u7edc\u95ee\u9898\u3002 <img decoding=\"async\" src=\"2026-10-05w5k2dkzpuz2.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5728\u5bb9\u5668\u5185\u90e8\u53ef\u4ee5\u5efa\u7acb\u5b50\u7f51&#xff0c;\u5b50\u7f51\u7684\u5f00\u5934\u4e00\u822c\u90fd\u662f172.18&#xff0c;\u5728\u540c\u4e00\u4e2a\u5b50\u7f51\u4e4b\u4e0b\u7684\u5bb9\u5668&#xff0c;\u4e0d\u9700\u8981\u77e5\u9053\u5bb9\u5668\u7684ip\u5730\u5740&#xff0c;\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u5bb9\u5668\u540d\u4e92\u76f8\u901a\u4fe1&#xff0c;\u4e0d\u540c\u7684\u5b50\u7f51\u5219\u4e0d\u80fd\u4e92\u76f8\u901a\u4fe1<\/p>\n<h4>compose<\/h4>\n<p>\u5982\u679c\u4e00\u4e2a\u670d\u52a1\u9700\u8981\u542f\u52a8\u5f88\u591a\u7684\u670d\u52a1&#xff0c;\u6bd4\u5982\u524d\u7aef\u7a0b\u5e8f&#xff0c;\u540e\u7aef\u7a0b\u5e8f&#xff0c;\u6570\u636e\u5e93&#xff0c;\u90a3\u4e48\u5f88\u663e\u7136\u6211\u4eec\u4e0d\u80fd\u5c06\u6240\u6709\u7684\u7a0b\u5e8f\u90fd\u6784\u5efa\u5728\u540c\u4e00\u4e2a\u5bb9\u5668\u4e4b\u4e0b&#xff0c;\u8fd9\u6837\u5f88\u5bb9\u6613\u51fa\u73b0\u4e00\u4e2a\u670d\u52a1\u5d29\u4e86&#xff0c;\u5176\u4ed6\u7684\u670d\u52a1\u4e5f\u8ddf\u7740\u906d\u6b83\u7684\u60c5\u51b5\u3002\u6240\u4ee5\u6211\u4eec\u5f88\u81ea\u7136\u7684\u60f3\u5230\u53ef\u4ee5\u901a\u8fc7\u6bcf\u4e00\u4e2a\u670d\u52a1\u5c31\u662f\u4e00\u4e2a\u5bb9\u5668\u7684\u65b9\u5f0f\u5b9e\u73b0\u591a\u5bb9\u5668\u7f16\u6392\u6765\u7ba1\u7406\u4e00\u6574\u4e2a\u9879\u76ee&#xff0c;\u4f46\u662f\u624b\u52a8\u7684\u53bb\u4e00\u4e2a\u6307\u4ee4\u4e00\u4e2a\u6307\u4ee4\u7684\u64cd\u4f5c\u5bb9\u5668\u5341\u5206\u7e41\u7410&#xff0c;\u6240\u4ee5\u6211\u4eec\u901a\u8fc7\u7f16\u5199docker-compose.yml\u6587\u4ef6\u53ef\u4ee5\u5f88\u597d\u7684\u7ba1\u7406\u591a\u5bb9\u5668\u3002<\/p>\n<p><img decoding=\"async\" src=\"2026-10-05cq42dlngxg1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u5de6\u8fb9\u662f\u624b\u52a8\u7684\u53bb\u7ba1\u7406\u591a\u4e2a\u5bb9\u5668&#xff0c;\u53f3\u8fb9\u5c31\u662f\u4f7f\u7528docker-compose.yml\u6587\u4ef6\u7ba1\u7406\u591a\u5bb9\u5668<\/p>\n<h3>\u8f6c\u8f7d\u58f0\u660e<\/h3>\n<p>\u4e0a\u8ff0\u90e8\u5206\u622a\u56fe\u51fa\u81ea\u8fd9\u91cc&#xff0c;\u539f\u4f5c\u8005\u4e3aB\u7ad9UP\u4e3b\u201c\u6280\u672f\u722c\u722c\u867e\u201d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e\u548c\u57fa\u7840\u4f7f\u7528\u6559\u7a0b \u4e2a\u4eba\u4e3b\u9875&#xff1a;&gt; \u6211\u4e0d\u4f1a\u8d77\u540d\u5b57322  \u6280\u672f\u6808\u5b66\u4e60\u7b14\u8bb0  \u529b\u6263Hot100\u9898\u76ee\u89e3\u6790  Go\u9879\u76ee\u5b66\u4e60\u7b14\u8bb0 &lt; \u6587\u7ae0\u76ee\u5f55Docker\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e\u548c\u57fa\u7840\u4f7f\u7528\u6559\u7a0b1. \u5b89\u88c5docker2. Docker\u5e38\u89c1\u547d\u4ee43. Dockerfile4. \u63a8\u9001\u955c\u50cf\u5230Docker hub5. D<\/p>\n","protected":false},"author":2,"featured_media":113140,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,745,292,121,44],"topic":[],"class_list":["post-113160","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-docker","tag-go","tag-292","tag-121","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Docker\u8fd8\u80fd\u8fd9\u4e48\u7528\uff1f\uff1f\uff1f - \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\/113160.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker\u8fd8\u80fd\u8fd9\u4e48\u7528\uff1f\uff1f\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"Docker\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e\u548c\u57fa\u7840\u4f7f\u7528\u6559\u7a0b \u4e2a\u4eba\u4e3b\u9875&#xff1a;&gt; \u6211\u4e0d\u4f1a\u8d77\u540d\u5b57322 \u6280\u672f\u6808\u5b66\u4e60\u7b14\u8bb0 \u529b\u6263Hot100\u9898\u76ee\u89e3\u6790 Go\u9879\u76ee\u5b66\u4e60\u7b14\u8bb0 &lt; \u6587\u7ae0\u76ee\u5f55Docker\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e\u548c\u57fa\u7840\u4f7f\u7528\u6559\u7a0b1. \u5b89\u88c5docker2. Docker\u5e38\u89c1\u547d\u4ee43. Dockerfile4. \u63a8\u9001\u955c\u50cf\u5230Docker hub5. D\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/113160.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-05T07:59:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075926-6ac358de96bdd.png\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/113160.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/113160.html\",\"name\":\"Docker\u8fd8\u80fd\u8fd9\u4e48\u7528\uff1f\uff1f\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-05T07:59:33+00:00\",\"dateModified\":\"2026-10-05T07:59:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/113160.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/113160.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/113160.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docker\u8fd8\u80fd\u8fd9\u4e48\u7528\uff1f\uff1f\uff1f\"}]},{\"@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":"Docker\u8fd8\u80fd\u8fd9\u4e48\u7528\uff1f\uff1f\uff1f - \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\/113160.html","og_locale":"zh_CN","og_type":"article","og_title":"Docker\u8fd8\u80fd\u8fd9\u4e48\u7528\uff1f\uff1f\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"Docker\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e\u548c\u57fa\u7840\u4f7f\u7528\u6559\u7a0b \u4e2a\u4eba\u4e3b\u9875&#xff1a;&gt; \u6211\u4e0d\u4f1a\u8d77\u540d\u5b57322 \u6280\u672f\u6808\u5b66\u4e60\u7b14\u8bb0 \u529b\u6263Hot100\u9898\u76ee\u89e3\u6790 Go\u9879\u76ee\u5b66\u4e60\u7b14\u8bb0 &lt; \u6587\u7ae0\u76ee\u5f55Docker\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e\u548c\u57fa\u7840\u4f7f\u7528\u6559\u7a0b1. \u5b89\u88c5docker2. Docker\u5e38\u89c1\u547d\u4ee43. Dockerfile4. \u63a8\u9001\u955c\u50cf\u5230Docker hub5. D","og_url":"https:\/\/www.wsisp.com\/helps\/113160.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-05T07:59:33+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261005075926-6ac358de96bdd.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/113160.html","url":"https:\/\/www.wsisp.com\/helps\/113160.html","name":"Docker\u8fd8\u80fd\u8fd9\u4e48\u7528\uff1f\uff1f\uff1f - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-05T07:59:33+00:00","dateModified":"2026-10-05T07:59:33+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/113160.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/113160.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/113160.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Docker\u8fd8\u80fd\u8fd9\u4e48\u7528\uff1f\uff1f\uff1f"}]},{"@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\/113160","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=113160"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/113160\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/113140"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=113160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=113160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=113160"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=113160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}