{"id":53028,"date":"2025-08-11T22:54:25","date_gmt":"2025-08-11T14:54:25","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/53028.html"},"modified":"2025-08-11T22:54:25","modified_gmt":"2025-08-11T14:54:25","slug":"docker%e5%85%a5%e9%97%a8%e6%95%99%e7%a8%8b%ef%bc%9a%e5%9c%a8%e8%85%be%e8%ae%af%e4%ba%91%e8%bd%bb%e9%87%8f%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e9%83%a8%e7%bd%b2%e4%bd%a0%e7%9a%84%e7%ac%ac%e4%b8%80","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/53028.html","title":{"rendered":"Docker\u5165\u95e8\u6559\u7a0b\uff1a\u5728\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u4f60\u7684\u7b2c\u4e00\u4e2a\u5bb9\u5668\u5316\u5e94\u7528 (2025)"},"content":{"rendered":"<\/p>\n<p>\u66f4\u591a\u4e91\u670d\u52a1\u5668\u77e5\u8bc6&#xff0c;\u5c3d\u5728hostol.com<\/p>\n<p>\u201c\u5728\u6211\u7535\u8111\u4e0a\u660e\u660e\u662f\u597d\u7684\u554a&#xff01;\u201d<\/p>\n<\/p>\n<p>\u8fd9\u53e5\u8bdd&#xff0c;\u662f\u4e0d\u662f\u582a\u79f0\u7a0b\u5e8f\u5458\u201c\u7529\u9505\u201d\u6392\u884c\u699c\u7b2c\u4e00\u540d\u7684\u91d1\u53e5&#xff1f;\u5f53\u4f60\u8f9b\u8f9b\u82e6\u82e6\u5f00\u53d1\u5b8c\u4e00\u4e2a\u5e94\u7528&#xff0c;\u628a\u5b83\u4ea4\u7ed9\u540c\u4e8b\u6216\u8005\u90e8\u7f72\u5230\u670d\u52a1\u5668\u4e0a\u65f6&#xff0c;\u5374\u53d1\u73b0\u56e0\u4e3a\u5b83\u4f9d\u8d56\u7684\u67d0\u4e2a\u51fd\u6570\u5e93\u7248\u672c\u4e0d\u5bf9\u3001\u6216\u8005\u64cd\u4f5c\u7cfb\u7edf\u7684\u914d\u7f6e\u6709\u5dee\u5f02&#xff0c;\u7a0b\u5e8f\u538b\u6839\u5c31\u8dd1\u4e0d\u8d77\u6765\u3002\u90a3\u79cd\u632b\u8d25\u611f&#xff0c;\u8db3\u4ee5\u6467\u6bc1\u4e00\u4e2a\u7f8e\u597d\u7684\u4e0b\u5348\u3002<\/p>\n<\/p>\n<p>\u73af\u5883\u4e0d\u4e00\u81f4&#xff0c;\u5c31\u662f\u90a3\u4e2a\u6c38\u8fdc\u6f5c\u4f0f\u5728\u5f00\u53d1\u4e0e\u8fd0\u7ef4\u4e4b\u95f4\u3001\u5236\u9020\u4e86\u65e0\u6570\u9ebb\u70e6\u7684\u201c\u5e7d\u7075\u201d\u3002<\/p>\n<\/p>\n<p>\u90a3\u4e48&#xff0c;\u6709\u6ca1\u6709\u4e00\u79cd\u65b9\u6cd5&#xff0c;\u80fd\u628a\u6211\u7684\u5e94\u7528\u7a0b\u5e8f&#xff0c;\u8fde\u540c\u5b83\u8fd0\u884c\u6240\u9700\u7684\u6240\u6709\u73af\u5883&#xff08;\u6bd4\u5982\u7279\u5b9a\u7248\u672c\u7684Python\u3001\u6240\u6709\u7684\u4f9d\u8d56\u5e93\u3001\u6240\u6709\u7684\u914d\u7f6e\u6587\u4ef6&#xff09;&#xff0c;\u50cf\u5236\u4f5c\u4e00\u4e2a\u201c\u7231\u5fc3\u4fbf\u5f53\u201d\u4e00\u6837&#xff0c;\u5b8c\u7f8e\u5730\u6253\u5305\u5728\u4e00\u8d77&#xff1f;\u8fd9\u4e2a\u201c\u4fbf\u5f53\u76d2\u201d\u672c\u8eab\u5c31\u662f\u4e00\u4e2a\u9694\u79bb\u7684\u3001\u5e72\u51c0\u7684\u8ff7\u4f60\u64cd\u4f5c\u7cfb\u7edf\u3002\u65e0\u8bba\u6211\u628a\u8fd9\u4e2a\u201c\u4fbf\u5f53\u201d\u5e26\u5230\u8c01\u7684\u7535\u8111\u4e0a&#xff0c;\u6216\u8005\u54ea\u53f0\u670d\u52a1\u5668\u4e0a&#xff0c;\u53ea\u8981\u5bf9\u65b9\u5b89\u88c5\u4e86\u201c\u5fae\u6ce2\u7089\u201d&#xff08;\u4e5f\u5c31\u662fDocker\u73af\u5883&#xff09;&#xff0c;\u5c31\u80fd\u4e00\u952e\u201c\u52a0\u70ed\u201d&#xff0c;\u767e\u5206\u4e4b\u767e\u5730\u8fd8\u539f\u51fa\u548c\u6211\u7535\u8111\u4e0a\u4e00\u6a21\u4e00\u6837\u7684\u3001\u70ed\u6c14\u817e\u817e\u7684\u996d\u83dc&#xff08;\u5e94\u7528\u7a0b\u5e8f&#xff09;\u3002<\/p>\n<\/p>\n<p>\u6709&#xff01;\u8fd9\u4e2a\u795e\u5947\u7684\u201c\u4fbf\u5f53\u76d2\u201d\u5236\u4f5c\u6280\u672f&#xff0c;\u5c31\u662fDocker\u3002\u800cDocker&#xff0c;\u5c31\u662f\u90a3\u4f4d\u6765\u6d88\u706d\u201c\u73af\u5883\u4e0d\u4e00\u81f4\u201d\u8fd9\u4e2a\u5e7d\u7075\u7684\u201c\u6349\u9b3c\u5929\u5e08\u201d\u3002<\/p>\n<\/p>\n<h5>\u62c6\u89e3\u201c\u9b54\u6cd5\u4fbf\u5f53\u76d2\u201d&#xff1a;Docker\u7684\u4e09\u5927\u6838\u5fc3\u6982\u5ff5<\/h5>\n<\/p>\n<p>\u5728\u52a8\u624b\u4e4b\u524d&#xff0c;\u6211\u4eec\u5fc5\u987b\u5148\u82b1\u4e09\u5206\u949f&#xff0c;\u7528\u5927\u767d\u8bdd\u7406\u89e3Docker\u7684\u4e09\u4e2a\u6838\u5fc3\u201c\u96f6\u4ef6\u201d\u3002<\/p>\n<\/p>\n<li>\u955c\u50cf (Image)&#xff1a; \u8fd9\u5c31\u662f\u5236\u4f5c\u201c\u4fbf\u5f53\u201d\u7684**\u201c\u83dc\u8c31\u548c\u914d\u6599\u6e05\u5355\u201d**\u3002\u5b83\u662f\u4e00\u4e2a\u53ea\u8bfb\u7684\u6a21\u677f&#xff0c;\u8be6\u7ec6\u5730\u8bb0\u5f55\u4e86\u5236\u4f5c\u67d0\u4e2a\u7279\u5b9a\u4fbf\u5f53&#xff08;\u6bd4\u5982\u201c\u5bab\u4fdd\u9e21\u4e01\u4fbf\u5f53\u201d&#xff09;\u9700\u8981\u54ea\u4e9b\u7c73\u996d\u3001\u54ea\u4e9b\u9e21\u8089\u3001\u54ea\u4e9b\u914d\u83dc&#xff08;\u5e94\u7528\u7a0b\u5e8f\u548c\u4f9d\u8d56\u5e93&#xff09;&#xff0c;\u4ee5\u53ca\u5236\u4f5c\u7684\u5148\u540e\u987a\u5e8f\u3002<\/li>\n<li>\u5bb9\u5668 (Container)&#xff1a; \u8fd9\u5c31\u662f\u6839\u636e\u83dc\u8c31&#xff0c;\u505a\u51fa\u6765\u7684\u3001\u90a3\u4e2a\u70ed\u6c14\u817e\u817e\u7684\u3001\u53ef\u4ee5\u5403\u7684\u201c\u4fbf\u5f53\u201d\u672c\u8eab\u3002\u955c\u50cf\u662f\u9759\u6001\u7684\u6a21\u677f&#xff0c;\u800c\u5bb9\u5668\u662f\u52a8\u6001\u7684\u3001\u6b63\u5728\u8fd0\u884c\u7684\u5b9e\u4f8b\u3002\u4f60\u53ef\u4ee5\u7528\u540c\u4e00\u4efd\u201c\u5bab\u4fdd\u9e21\u4e01\u201d\u83dc\u8c31&#xff08;\u955c\u50cf&#xff09;&#xff0c;\u505a\u51fa\u65e0\u6570\u4efd\u4e00\u6a21\u4e00\u6837\u7684\u201c\u5bab\u4fdd\u9e21\u4e01\u4fbf\u5f53\u201d&#xff08;\u5bb9\u5668&#xff09;\u3002\u6bcf\u4e2a\u4fbf\u5f53&#xff08;\u5bb9\u5668&#xff09;\u90fd\u662f\u72ec\u7acb\u3001\u9694\u79bb\u7684\u3002<\/li>\n<li>\u4ed3\u5e93 (Repository)&#xff1a; \u8fd9\u5c31\u662f\u5b58\u653e\u5404\u79cd\u201c\u83dc\u8c31\u201d&#xff08;\u955c\u50cf&#xff09;\u7684**\u201c\u5de8\u578b\u7ebf\u4e0a\u83dc\u8c31\u56fe\u4e66\u9986\u201d**\u3002\u5176\u4e2d\u6700\u5927\u3001\u6700\u5b98\u65b9\u7684\u90a3\u4e2a&#xff0c;\u53ebDocker Hub\u3002\u4f60\u53ef\u4ee5\u4ece\u91cc\u9762\u627e\u5230\u51e0\u4e4e\u6240\u6709\u6d41\u884c\u8f6f\u4ef6\u7684\u5b98\u65b9\u83dc\u8c31&#xff0c;\u6bd4\u5982Nginx\u3001MySQL\u3001Python\u7b49\u7b49\u3002<\/li>\n<p>\u7406\u89e3\u4e86\u8fd9\u4e09\u70b9&#xff0c;\u6211\u4eec\u5c31\u53ef\u4ee5\u5f00\u59cb\u5236\u4f5c\u6211\u4eec\u7684\u7b2c\u4e00\u4e2a\u201c\u4fbf\u5f53\u201d\u4e86\u3002<\/p>\n<\/p>\n<h5>\u7b2c\u4e00\u6b65&#xff1a;\u51c6\u5907\u201c\u53a8\u623f\u201d\u2014\u2014\u5728\u817e\u8baf\u4e91\u4e0a\u8bf7\u4e00\u4f4d\u201c\u81ea\u5e26\u53a8\u5177\u201d\u7684\u5927\u53a8<\/h5>\n<\/p>\n<p>\u6211\u4eec\u9996\u5148\u9700\u8981\u4e00\u4e2a\u88c5\u597d\u4e86\u5168\u5957\u201c\u53a8\u5177\u201d&#xff08;Docker\u73af\u5883&#xff09;\u7684\u201c\u53a8\u623f\u201d&#xff08;\u670d\u52a1\u5668&#xff09;\u3002\u800c\u817e\u8baf\u4e91\u7684\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668&#xff0c;\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u4e2a\u6781\u5176\u65b9\u4fbf\u7684\u201c\u4f5c\u5f0a\u201d\u9009\u9879\u3002<\/p>\n<\/p>\n<li>\u767b\u5f55\u817e\u8baf\u4e91&#xff0c;\u8fdb\u5165\u8f7b\u91cf\u5e94\u7528\u670d\u52a1\u5668\u7684\u8d2d\u4e70\u9875\u9762\u3002<\/li>\n<li>\u9009\u62e9\u5730\u57df\u548c\u914d\u7f6e\u3002 \u5bf9\u4e8e\u5b66\u4e60Docker\u6765\u8bf4&#xff0c;\u6700\u4fbf\u5b9c\u76842\u68384G\u914d\u7f6e&#xff0c;\u5c31\u5df2\u7ecf\u7ef0\u7ef0\u6709\u4f59\u3002<\/li>\n<li>\u5173\u952e\u4e00\u6b65&#xff1a;\u9009\u62e9\u955c\u50cf&#xff01; \u5728\u201c\u955c\u50cf\u201d\u8fd9\u4e00\u680f&#xff0c;\u4e0d\u8981\u9009\u62e9\u5e38\u89c4\u7684\u64cd\u4f5c\u7cfb\u7edf&#xff08;\u6bd4\u5982Ubuntu\u6216CentOS&#xff09;\u3002\u8bf7\u70b9\u51fb**\u201c\u5e94\u7528\u955c\u50cf\u201d&#xff0c;\u7136\u540e\u5728\u4e0b\u65b9\u7684\u5217\u8868\u6216\u641c\u7d22\u6846\u91cc&#xff0c;\u627e\u5230\u201cDocker CE\u201d**\u3002\n<ul>\n<li>\u8fd9\u662f\u4ec0\u4e48\u610f\u601d&#xff1f; \u8fd9\u610f\u5473\u7740&#xff0c;\u4f60\u4e0b\u5355\u8d2d\u4e70\u7684\u8fd9\u53f0\u670d\u52a1\u5668&#xff0c;\u817e\u8baf\u4e91\u5728\u628a\u5b83\u4ea4\u7ed9\u4f60\u4e4b\u524d&#xff0c;\u5c31\u5df2\u7ecf\u5e2e\u4f60\u628a\u6700\u65b0\u3001\u6700\u7a33\u5b9a\u7684Docker\u73af\u5883&#xff0c;\u8fde\u540c\u6240\u6709\u76f8\u5173\u7684\u5de5\u5177&#xff0c;\u5168\u90fd\u9884\u88c5\u597d\u4e86\u3002<\/li>\n<li>\u6bd4\u55bb\u4e00\u4e0b&#xff1a; \u8fd9\u5c31\u50cf\u4f60\u4e70\u7684\u4e0d\u662f\u4e00\u5957\u6bdb\u576f\u623f&#xff0c;\u800c\u662f\u4e00\u5957\u5df2\u7ecf\u901a\u597d\u4e86\u6c34\u7535\u7164\u3001\u5e76\u4e14\u914d\u5907\u4e86\u5168\u5957\u5fb7\u56fd\u8fdb\u53e3\u53a8\u5177\u7684\u201c\u7cbe\u88c5\u516c\u5bd3\u201d\u3002\u4f60\u53ea\u9700\u8981\u62ce\u5305\u5165\u4f4f&#xff0c;\u76f4\u63a5\u5f00\u59cb\u201c\u505a\u83dc\u201d\u5c31\u884c\u4e86\u3002<\/li>\n<\/ul>\n<\/li>\n<p>\u9009\u4e2dDocker CE\u955c\u50cf&#xff0c;\u5b8c\u6210\u652f\u4ed8\u3002\u4e00\u4e24\u5206\u949f\u540e&#xff0c;\u4f60\u7684\u201c\u9876\u7ea7\u53a8\u623f\u201d\u5c31\u5df2\u7ecf\u5728\u4e91\u7aef\u51c6\u5907\u5c31\u7eea\u4e86\u3002<\/p>\n<\/p>\n<h5>\u7b2c\u4e8c\u6b65&#xff1a;\u201c\u53ee&#xff01;\u5fae\u6ce2\u7089\u52a0\u70ed\u201d\u2014\u2014\u8fd0\u884c\u4f60\u7684\u7b2c\u4e00\u4e2aNginx\u5bb9\u5668<\/h5>\n<\/p>\n<p>\u73b0\u5728&#xff0c;\u6211\u4eec\u5df2\u7ecf\u6709\u4e86\u4e00\u4e2a\u88c5\u597dDocker\u7684\u670d\u52a1\u5668\u3002\u8ba9\u6211\u4eec\u6765\u5c0f\u8bd5\u725b\u5200&#xff0c;\u4ece\u201c\u83dc\u8c31\u56fe\u4e66\u9986\u201d(Docker Hub)\u91cc&#xff0c;\u62ff\u4e00\u4efd\u6700\u7b80\u5355\u7684\u201cNginx\u5b98\u65b9\u83dc\u8c31\u201d&#xff0c;\u6765\u52a0\u70ed\u4e00\u4efd\u201cNginx\u7f51\u7ad9\u4fbf\u5f53\u201d\u3002<\/p>\n<\/p>\n<p>1\u767b\u5f55\u4f60\u7684\u670d\u52a1\u5668\u3002 \u5728\u817e\u8baf\u4e91\u540e\u53f0\u627e\u5230\u4f60\u670d\u52a1\u5668\u7684IP\u5730\u5740\u548c\u5bc6\u7801&#xff0c;\u901a\u8fc7SSH\u767b\u5f55\u8fdb\u53bb\u3002<\/p>\n<\/p>\n<p>2\u9a8c\u8bc1Docker\u662f\u5426\u5c31\u4f4d\u3002 \u5728\u547d\u4ee4\u884c\u8f93\u5165&#xff1a;<\/p>\n<\/p>\n<p>Bash<\/p>\n<\/p>\n<p>docker &#8211;version<\/p>\n<p>\u5982\u679c\u4f60\u770b\u5230\u4e00\u4e32\u7248\u672c\u53f7\u4fe1\u606f&#xff0c;\u8bf4\u660e\u4f60\u7684\u201c\u53a8\u5177\u201d\u5de5\u4f5c\u6b63\u5e38\u3002<\/p>\n<\/p>\n<p>\u5ff5\u51fa\u5492\u8bed&#xff0c;\u542f\u52a8Nginx&#xff01; \u5728\u547d\u4ee4\u884c\u91cc&#xff0c;\u8f93\u5165\u4e0b\u9762\u8fd9\u884c\u547d\u4ee4&#xff0c;\u7136\u540e\u56de\u8f66&#xff1a;<\/p>\n<\/p>\n<p>Bash<\/p>\n<\/p>\n<p>docker run -d -p 8080:80 &#8211;name my-first-nginx nginx<\/p>\n<p>\u522b\u6015&#xff0c;\u6211\u4eec\u6765\u62c6\u89e3\u4e00\u4e0b\u8fd9\u884c\u201c\u5492\u8bed\u201d&#xff1a;<\/p>\n<\/p>\n<p>\u547d\u4ee4\u6267\u884c\u540e&#xff0c;\u4f60\u4f1a\u770b\u5230Docker\u5f00\u59cb\u4e0b\u8f7d\u955c\u50cf&#xff0c;\u7136\u540e\u8fd4\u56de\u4e00\u957f\u4e32\u5b57\u7b26&#xff0c;\u4ee3\u8868\u4f60\u7684\u5bb9\u5668\u5df2\u7ecf\u6210\u529f\u542f\u52a8\u4e86&#xff01;<\/p>\n<\/p>\n<p>\u89c1\u8bc1\u5947\u8ff9\u7684\u65f6\u523b&#xff1a;<\/p>\n<\/p>\n<p>\u73b0\u5728&#xff0c;\u6253\u5f00\u4f60\u672c\u5730\u7535\u8111\u7684\u6d4f\u89c8\u5668&#xff0c;\u5728\u5730\u5740\u680f\u8f93\u5165&#xff1a;http:\/\/\u4f60\u7684\u670d\u52a1\u5668IP\u5730\u5740:8080&#xff0c;\u7136\u540e\u56de\u8f66\u3002<\/p>\n<\/p>\n<p>\u5982\u679c\u4f60\u770b\u5230\u4e86\u90a3\u4e2a\u7ecf\u5178\u7684**\u201cWelcome to nginx!\u201d**\u9875\u9762&#xff0c;\u90a3\u4e48&#xff0c;\u8bf7\u4e3a\u4f60\u81ea\u5df1\u9f13\u638c&#xff01;\u4f60\u5df2\u7ecf\u6210\u529f\u5730\u542f\u52a8\u4e86\u4f60\u4eba\u751f\u4e2d\u7b2c\u4e00\u4e2aDocker\u5bb9\u5668\u3002\u4f60\u5df2\u7ecf\u638c\u63e1\u4e86\u201c\u70ed\u522b\u4eba\u505a\u597d\u7684\u4fbf\u5f53\u201d\u7684\u6280\u80fd\u3002<\/p>\n<\/p>\n<h5>\u7b2c\u4e09\u6b65&#xff1a;\u6210\u4e3a\u201c\u5927\u53a8\u201d\u2014\u2014\u4eb2\u624b\u6253\u5305\u4e00\u4e2a\u5c5e\u4e8e\u4f60\u81ea\u5df1\u7684\u5e94\u7528<\/h5>\n<\/p>\n<p>\u70ed\u522b\u4eba\u7684\u4fbf\u5f53\u56fa\u7136\u65b9\u4fbf&#xff0c;\u4f46\u771f\u6b63\u7684\u4e50\u8da3&#xff0c;\u5728\u4e8e\u4eb2\u624b\u5236\u4f5c\u5c5e\u4e8e\u81ea\u5df1\u7684\u201c\u72ec\u5bb6\u79c1\u623f\u83dc\u201d\u3002\u73b0\u5728&#xff0c;\u6211\u4eec\u5c31\u6765\u628a\u4e00\u4e2a\u6211\u4eec\u81ea\u5df1\u5199\u7684\u3001\u6781\u7b80\u7684Python\u7f51\u7ad9&#xff0c;\u6253\u5305\u6210\u4e00\u4e2aDocker\u955c\u50cf&#xff0c;\u5e76\u8fd0\u884c\u8d77\u6765\u3002<\/p>\n<\/p>\n<p>1\u51c6\u5907\u201c\u98df\u6750\u201d\u3002 \u6211\u4eec\u5148\u521b\u5efa\u4e00\u4e2a\u9879\u76ee\u76ee\u5f55&#xff0c;\u5e76\u5728\u91cc\u9762\u521b\u5efa\u4e24\u4e2a\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p>Bash<\/p>\n<\/p>\n<p>mkdir my-hello-app<br \/>\ncd my-hello-app<\/p>\n<p>\u521b\u5efaPython\u5e94\u7528\u6587\u4ef6 app.py&#xff1a;<\/p>\n<\/p>\n<p>Bash<\/p>\n<\/p>\n<p>nano app.py<\/p>\n<p>\u5728\u91cc\u9762\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<\/p>\n<p>Python<\/p>\n<\/p>\n<p>from flask import Flask<br \/>\napp &#061; Flask(__name__)<\/p>\n<p>&#064;app.route(&#039;\/&#039;)<br \/>\ndef hello_world():<br \/>\n    return &#039;Hello, Docker! \u8fd9\u662f\u6211\u4eb2\u624b\u6253\u5305\u7684\u5e94\u7528&#xff01;&#039;<\/p>\n<p>if __name__ &#061;&#061; &#039;__main__&#039;:<br \/>\n    app.run(debug&#061;True, host&#061;&#039;0.0.0.0&#039;)<\/p>\n<p>\u521b\u5efa\u4f9d\u8d56\u6e05\u5355 requirements.txt&#xff1a;<\/p>\n<\/p>\n<p>Bash<\/p>\n<\/p>\n<p>nano requirements.txt<\/p>\n<p>\u5728\u91cc\u9762\u53ea\u5199\u4e00\u884c&#xff1a;<\/p>\n<\/p>\n<p>Flask&#061;&#061;2.0.1<\/p>\n<p>2\u64b0\u5199\u4f60\u7684\u201c\u72ec\u5bb6\u83dc\u8c31\u201d\u2014\u2014Dockerfile\u3002 \u5728my-hello-app\u76ee\u5f55\u4e0b&#xff0c;\u521b\u5efa\u4e00\u4e2a\u540d\u4e3aDockerfile\u7684\u6587\u4ef6&#xff08;\u6ca1\u6709\u540e\u7f00\u540d&#xff01;&#xff09;&#xff1a;<\/p>\n<\/p>\n<p>Bash<\/p>\n<\/p>\n<p>nano Dockerfile<\/p>\n<p>\u5728\u91cc\u9762&#xff0c;\u8f93\u5165\u6211\u4eec\u8fd9\u4efd\u201c\u79c1\u623f\u83dc\u201d\u7684\u5236\u4f5c\u6b65\u9aa4&#xff1a;<\/p>\n<\/p>\n<p>Dockerfile<\/p>\n<\/p>\n<p># \u6b65\u9aa41&#xff1a;\u9009\u62e9\u4e00\u4e2a\u5e26\u6709Python 3.9\u7684\u57fa\u7840\u53a8\u623f<br \/>\nFROM python:3.9-slim<\/p>\n<p># \u6b65\u9aa42&#xff1a;\u5728\u53a8\u623f\u91cc&#xff0c;\u521b\u5efa\u4e00\u4e2a\u53eb\/app\u7684\u64cd\u4f5c\u53f0<br \/>\nWORKDIR \/app<\/p>\n<p># \u6b65\u9aa43&#xff1a;\u628a\u53a8\u623f\u5916\u6240\u6709\u51c6\u5907\u597d\u7684\u98df\u6750&#xff0c;\u90fd\u590d\u5236\u5230\u64cd\u4f5c\u53f0\u4e0a<br \/>\nCOPY . .<\/p>\n<p># \u6b65\u9aa44&#xff1a;\u6839\u636e\u98df\u6750\u6e05\u5355&#xff0c;\u5b89\u88c5\u6240\u6709\u914d\u6599<br \/>\nRUN pip install -r requirements.txt<\/p>\n<p># \u6b65\u9aa45&#xff1a;\u544a\u8bc9\u5927\u5bb6&#xff0c;\u8fd9\u4efd\u4fbf\u5f53\u7684\u51fa\u9910\u53e3\u57285000<br \/>\nEXPOSE 5000<\/p>\n<p># \u6b65\u9aa46&#xff1a;\u6700\u540e&#xff0c;\u89c4\u5b9a\u52a0\u70ed\u8fd9\u4efd\u4fbf\u5f53\u65f6&#xff0c;\u8981\u6267\u884c\u7684\u4e3b\u83dc\u5236\u4f5c\u547d\u4ee4<br \/>\nCMD [&#034;python&#034;, &#034;app.py&#034;]<\/p>\n<p>\u8fd9\u4efdDockerfile&#xff0c;\u662f\u4e0d\u662f\u50cf\u4e00\u4efd\u6ce8\u91ca\u6781\u5176\u8be6\u7ec6\u7684\u83dc\u8c31&#xff0c;\u6e05\u6670\u5730\u8bb0\u5f55\u4e86\u6bcf\u4e00\u6b65\u64cd\u4f5c&#xff1f;<\/p>\n<\/p>\n<p>3\u8ba9Docker\u7167\u7740\u201c\u83dc\u8c31\u201d\u505a\u201c\u83dc\u201d\u2014\u2014\u6784\u5efa\u955c\u50cf\u3002 \u5728my-hello-app\u76ee\u5f55\u4e0b&#xff0c;\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4&#xff1a;<\/p>\n<\/p>\n<p>Bash<\/p>\n<\/p>\n<p>docker build -t my-python-app .<\/p>\n<p>docker build&#xff1a;\u544a\u8bc9Docker&#xff1a;\u201c\u5f00\u59cb\u505a\u83dc&#xff01;\u201d<\/p>\n<\/p>\n<p>-t my-python-app&#xff1a;\u7ed9\u505a\u51fa\u6765\u7684\u8fd9\u4efd\u201c\u83dc\u8c31\u201d&#xff08;\u955c\u50cf&#xff09;\u8d77\u4e2a\u540d\u5b57\u3002<\/p>\n<\/p>\n<p>\u544a\u8bc9Docker&#xff0c;\u83dc\u8c31&#xff08;Dockerfile&#xff09;\u5c31\u5728\u5f53\u524d\u76ee\u5f55\u4e0b\u3002 Docker\u4f1a\u4e25\u683c\u6309\u7167\u4f60\u7684Dockerfile&#xff0c;\u4e00\u6b65\u4e00\u6b65\u5730\u6267\u884c&#xff0c;\u6700\u7ec8\u751f\u6210\u4e00\u4e2a\u5c5e\u4e8e\u4f60\u81ea\u5df1\u7684\u3001\u72ec\u4e00\u65e0\u4e8c\u7684\u955c\u50cf\u3002<\/p>\n<\/p>\n<p>4\u4e0a\u83dc&#xff01;\u2014\u2014\u8fd0\u884c\u4f60\u81ea\u5df1\u7684\u5bb9\u5668\u3002 \u73b0\u5728&#xff0c;\u6211\u4eec\u7528\u81ea\u5df1\u7684\u201c\u83dc\u8c31\u201d&#xff0c;\u505a\u4e00\u4efd\u201c\u4fbf\u5f53\u201d\u51fa\u6765&#xff1a;<\/p>\n<\/p>\n<p>Bash<\/p>\n<\/p>\n<p>docker run -d -p 5000:5000 &#8211;name my-app my-python-app<\/p>\n<li>\u8fd9\u6b21\u7684\u7aef\u53e3\u6620\u5c04\u662f-p 5000:5000&#xff0c;\u56e0\u4e3a\u6211\u4eec\u7684Flask\u5e94\u7528&#xff0c;\u5185\u90e8\u7684\u51fa\u9910\u53e3\u662f\u57285000\u3002<\/li>\n<p>\u6700\u7ec8\u7684\u51ef\u65cb&#xff1a;<\/p>\n<\/p>\n<p>\u518d\u6b21\u6253\u5f00\u4f60\u672c\u5730\u7684\u6d4f\u89c8\u5668&#xff0c;\u8fd9\u6b21&#xff0c;\u5728\u5730\u5740\u680f\u8f93\u5165&#xff1a;http:\/\/\u4f60\u7684\u670d\u52a1\u5668IP\u5730\u5740:5000\u3002<\/p>\n<\/p>\n<p>\u5f53\u4f60\u770b\u5230\u5c4f\u5e55\u4e0a\u663e\u793a\u51fa**\u201cHello, Docker! \u8fd9\u662f\u6211\u4eb2\u624b\u6253\u5305\u7684\u5e94\u7528&#xff01;\u201d**\u8fd9\u884c\u4f60\u4eb2\u624b\u5199\u4e0b\u7684\u6587\u5b57\u65f6&#xff0c;\u90a3\u79cd\u6210\u5c31\u611f&#xff0c;\u65e0\u4e0e\u4f26\u6bd4\u3002\u4f60\u4e0d\u518d\u53ea\u662f\u4e00\u4e2a\u201c\u6d88\u8d39\u8005\u201d&#xff0c;\u4f60\u5df2\u7ecf\u6210\u4e86\u4e00\u4e2a\u771f\u6b63\u7684\u201c\u521b\u9020\u8005\u201d\u3002<\/p>\n<\/p>\n<h4>\u4f60\u7684\u65c5\u7a0b&#xff0c;\u624d\u521a\u521a\u5f00\u59cb<\/h4>\n<\/p>\n<p>\u4eca\u5929&#xff0c;\u4f60\u4eb2\u624b\u6253\u5305\u5e76\u542f\u52a8\u4e86\u4f60\u7684\u7b2c\u4e00\u4e2a\u201c\u9b54\u6cd5\u4fbf\u5f53\u201d\u3002\u8fd9\u4e2a\u5c0f\u5c0f\u7684\u201cHello, Docker!\u201d&#xff0c;\u662f\u4f60\u901a\u5f80\u4e91\u539f\u751f\u3001DevOps\u7b49\u5e7f\u9614\u4e16\u754c\u7684\u7b2c\u4e00\u5f20\u95e8\u7968\u3002<\/p>\n<\/p>\n<p>\u4f60\u5df2\u7ecf\u638c\u63e1\u4e86\u5c06\u4efb\u4f55\u5e94\u7528&#xff0c;\u5c01\u88c5\u6210\u4e00\u4e2a\u6807\u51c6\u3001\u53ef\u79fb\u690d\u3001\u5904\u5904\u8fd0\u884c\u7684\u201c\u96c6\u88c5\u7bb1\u201d\u7684\u8d85\u80fd\u529b\u3002\u4ece\u6b64\u4ee5\u540e&#xff0c;\u201c\u5728\u6211\u7535\u8111\u4e0a\u662f\u597d\u7684\u201d\u5c06\u4e0d\u518d\u662f\u4f60\u7684\u501f\u53e3&#xff0c;\u800c\u662f\u4f60\u7684\u81ea\u4fe1\u5ba3\u8a00\u3002\u56e0\u4e3a\u4f60\u77e5\u9053&#xff0c;\u4f60\u7684\u5e94\u7528&#xff0c;\u5df2\u7ecf\u88ab\u88c5\u8fdb\u4e86\u90a3\u4e2a\u6807\u51c6\u3001\u53ef\u9760\u3001\u968f\u5904\u53ef\u884c\u7684\u9b54\u6cd5\u76d2\u5b50\u91cc\u3002<\/p>\n<\/p>\n<p>\u53bb\u5427&#xff0c;\u53bb\u6253\u5305\u4f60\u7684\u4e0b\u4e00\u4e2a\u4f1f\u5927\u521b\u610f\u5427&#xff01;<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb951\u6b21\uff0c\u70b9\u8d5e19\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u8fd8\u5728\u4e3a\u201c\u5728\u6211\u7535\u8111\u4e0a\u660e\u660e\u662f\u597d\u7684\u201d\u800c\u70e6\u607c\uff1f\u672c\u7bc7Docker\u5165\u95e8\u6559\u7a0b\uff0c\u7528\u901a\u4fd7\u6613\u61c2\u7684\u6bd4\u55bb\u89e3\u91ca\u955c\u50cf\u3001\u5bb9\u5668\u7684\u6838\u5fc3\u6982\u5ff5\uff0c\u5e76\u624b\u628a\u624b\u5e26\u4f60\u5728\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668\u4e0a\uff0c\u4ece\u8fd0\u884cNginx\u5230\u7f16\u5199Dockerfile\u6253\u5305\u81ea\u5df1\u7684Python\u5e94\u7528\uff0c\u8f7b\u677e\u638c\u63e1\u5bb9\u5668\u5316\u90e8\u7f72\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27,43,351],"topic":[],"class_list":["post-53028","post","type-post","status-publish","format-standard","hentry","category-server","tag-docker","tag-43","tag-351"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Docker\u5165\u95e8\u6559\u7a0b\uff1a\u5728\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u4f60\u7684\u7b2c\u4e00\u4e2a\u5bb9\u5668\u5316\u5e94\u7528 (2025) - \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\/53028.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Docker\u5165\u95e8\u6559\u7a0b\uff1a\u5728\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u4f60\u7684\u7b2c\u4e00\u4e2a\u5bb9\u5668\u5316\u5e94\u7528 (2025) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb951\u6b21\uff0c\u70b9\u8d5e19\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u8fd8\u5728\u4e3a\u201c\u5728\u6211\u7535\u8111\u4e0a\u660e\u660e\u662f\u597d\u7684\u201d\u800c\u70e6\u607c\uff1f\u672c\u7bc7Docker\u5165\u95e8\u6559\u7a0b\uff0c\u7528\u901a\u4fd7\u6613\u61c2\u7684\u6bd4\u55bb\u89e3\u91ca\u955c\u50cf\u3001\u5bb9\u5668\u7684\u6838\u5fc3\u6982\u5ff5\uff0c\u5e76\u624b\u628a\u624b\u5e26\u4f60\u5728\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668\u4e0a\uff0c\u4ece\u8fd0\u884cNginx\u5230\u7f16\u5199Dockerfile\u6253\u5305\u81ea\u5df1\u7684Python\u5e94\u7528\uff0c\u8f7b\u677e\u638c\u63e1\u5bb9\u5668\u5316\u90e8\u7f72\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/53028.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-11T14:54:25+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/53028.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/53028.html\",\"name\":\"Docker\u5165\u95e8\u6559\u7a0b\uff1a\u5728\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u4f60\u7684\u7b2c\u4e00\u4e2a\u5bb9\u5668\u5316\u5e94\u7528 (2025) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-11T14:54:25+00:00\",\"dateModified\":\"2025-08-11T14:54:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/53028.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/53028.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/53028.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Docker\u5165\u95e8\u6559\u7a0b\uff1a\u5728\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u4f60\u7684\u7b2c\u4e00\u4e2a\u5bb9\u5668\u5316\u5e94\u7528 (2025)\"}]},{\"@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\u5165\u95e8\u6559\u7a0b\uff1a\u5728\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u4f60\u7684\u7b2c\u4e00\u4e2a\u5bb9\u5668\u5316\u5e94\u7528 (2025) - \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\/53028.html","og_locale":"zh_CN","og_type":"article","og_title":"Docker\u5165\u95e8\u6559\u7a0b\uff1a\u5728\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u4f60\u7684\u7b2c\u4e00\u4e2a\u5bb9\u5668\u5316\u5e94\u7528 (2025) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb951\u6b21\uff0c\u70b9\u8d5e19\u6b21\uff0c\u6536\u85cf12\u6b21\u3002\u8fd8\u5728\u4e3a\u201c\u5728\u6211\u7535\u8111\u4e0a\u660e\u660e\u662f\u597d\u7684\u201d\u800c\u70e6\u607c\uff1f\u672c\u7bc7Docker\u5165\u95e8\u6559\u7a0b\uff0c\u7528\u901a\u4fd7\u6613\u61c2\u7684\u6bd4\u55bb\u89e3\u91ca\u955c\u50cf\u3001\u5bb9\u5668\u7684\u6838\u5fc3\u6982\u5ff5\uff0c\u5e76\u624b\u628a\u624b\u5e26\u4f60\u5728\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668\u4e0a\uff0c\u4ece\u8fd0\u884cNginx\u5230\u7f16\u5199Dockerfile\u6253\u5305\u81ea\u5df1\u7684Python\u5e94\u7528\uff0c\u8f7b\u677e\u638c\u63e1\u5bb9\u5668\u5316\u90e8\u7f72\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/53028.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-11T14:54:25+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/53028.html","url":"https:\/\/www.wsisp.com\/helps\/53028.html","name":"Docker\u5165\u95e8\u6559\u7a0b\uff1a\u5728\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u4f60\u7684\u7b2c\u4e00\u4e2a\u5bb9\u5668\u5316\u5e94\u7528 (2025) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-11T14:54:25+00:00","dateModified":"2025-08-11T14:54:25+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/53028.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/53028.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/53028.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Docker\u5165\u95e8\u6559\u7a0b\uff1a\u5728\u817e\u8baf\u4e91\u8f7b\u91cf\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u4f60\u7684\u7b2c\u4e00\u4e2a\u5bb9\u5668\u5316\u5e94\u7528 (2025)"}]},{"@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\/53028","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=53028"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/53028\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=53028"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=53028"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=53028"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=53028"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}