{"id":13066,"date":"2022-09-26T12:45:55","date_gmt":"2022-09-26T04:45:55","guid":{"rendered":"http:\/\/gulass.cn\/?p=13066"},"modified":"2022-09-26T12:46:37","modified_gmt":"2022-09-26T04:46:37","slug":"docker-production-env","status":"publish","type":"post","link":"https:\/\/gulass.cn\/docker-production-env.html","title":{"rendered":"\u5728\u751f\u4ea7\u73af\u5883\u4f7f\u7528Docker\u90e8\u7f72\u5e94\u7528"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nDocker\u73b0\u5728\u8d8a\u6765\u8d8a\u6d41\u884c\uff0c\u4f46\u662f\u771f\u6b63\u5728\u751f\u4ea7\u73af\u5883\u90e8\u7f72Docker\u8fd8\u662f\u4e2a\u6bd4\u8f83\u65b0\u7684\u6982\u5ff5\uff0c\u8fd8\u6ca1\u6709\u4e00\u4e2a\u6807\u51c6\u7684\u6d41\u7a0b\u3002\u4f5c\u8005\u662fROR\u7684\u7a0b\u5e8f\u5458\uff0c\u4f5c\u8005\u7ed3\u5408\u5e73\u65f6\u7684\u90e8\u7f72\u7ecf\u9a8c\uff0c\u8054\u7cfbDocker\u7684\u7279\u70b9\uff0c\u5411\u5927\u5bb6\u5206\u4eab\u4e86\u5176\u5728\u751f\u4ea7\u73af\u5883\u4f7f\u7528Docker\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\u7684\u4e00\u4e2a\u5b9e\u8df5\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

<\/p>\n

Docker\u662f\u73b0\u5728\u5f00\u53d1\u5e94\u7528\u7a0b\u5e8f\u7684\u4e0d\u9519\u9009\u62e9\uff1b\u56e0\u4e3a\u5bf9\u4e8e\u4e00\u4e2a\u7814\u53d1\u7ec4\u6765\u8bf4\uff0c\u90e8\u7f72\u4e00\u4e2a\u5e94\u7528\u518d\u4e5f\u4e0d\u7528\u50cf\u4ee5\u524d\u90a3\u6837\u7e41\u7410\u7684\u4fee\u6539\u3001\u8bbe\u7f6e\u914d\u7f6e\u6587\u4ef6\u4e86\uff1b\u56e0\u4e3a\u5bf9\u4e8eDocker\u6765\u8bf4\u5b83\u201c\u5c4f\u853d\u201d\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u8fd0\u884c\u73af\u5883\uff0c\u4e0d\u7ba1\u4f60\u4f7f\u7528Mac\u3001Linux\u8fd8\u662fWindows\u90fd\u80fd\u7528\u76f8\u540c\u7684\u65b9\u5f0f\u8fd0\u884c\u3002<\/p>\n

\u4f46\u662f\uff0c\u5f53\u4f60\u4f7f\u7528Docker\u5c06\u5e94\u7528\u90e8\u7f72\u5230\u751f\u4ea7\u73af\u5883\u65f6\uff0c\u4f60\u4f1a\u89c9\u5f97Docker\u8fd8\u662f\u6709\u4e9b\u201c\u5f31\u201d\uff0c\u81f3\u5c11\u4eceRuby On Rails\uff08ROR\uff09\u7684\u89d2\u5ea6\u51fa\u53d1\u662f\u8fd9\u6837\u7684\u3002\u5f53\u6211\u67e5\u627e\u4e0e\u6d4b\u8bd5\u4e86\u5f88\u591a\u4e0d\u540c\u7684\u90e8\u7f72\u65b9\u6cd5\u4e0eDocker\u955c\u50cf\u540e\u53d1\u73b0\uff1a\u786e\u5b9e\u6ca1\u6709\u4e00\u4e2a\u786e\u5207\u800c\u4e14\u6807\u51c6\u7684\u90e8\u7f72\u65b9\u6848\u3002\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\u6211\u4f1a\u5206\u4eab\u4e00\u79cd\u751f\u4ea7\u73af\u5883\u90e8\u7f72ROR\u5e94\u7528\u7684\u6700\u4f73\u5b9e\u8df5\u3002<\/p>\n

\"docker\"<\/p>\n

\u6807\u51c6<\/strong><\/div>\n

\u5728\u5b9e\u9645\u64cd\u4f5c\u4e4b\u524d\uff0c\u6211\u4eec\u5217\u4e3e\u751f\u4ea7\u73af\u5883\u90e8\u7f72\u5e94\u7528\u7684\u6807\u51c6\uff1a<\/p>\n

    \n
  1. \u6613\u4e8e\u4f7f\u7528\uff1a\u90e8\u7f72\u5e94\u7528\u672c\u8eab\u5e94\u8be5\u5341\u5206\u7b80\u5355\uff0c\u4e0d\u7136\u90e8\u7f72\u65b0\u7a0b\u5e8f\u7684\u8fc7\u7a0b\u4f1a\u53d8\u5f97\u5341\u5206\u201c\u6050\u6016\u201d\u3002<\/li>\n
  2. \u96f6\u670d\u52a1\u4e2d\u65ad\uff1a\u8ba9\u6211\u4eec\u9762\u5bf9\u5b83\u2014\u2014\u96f6\u670d\u52a1\u4e2d\u65ad\u90e8\u7f72ROR\u5e94\u7528\u7a0b\u5e8f\u5df2\u7ecf\u6210\u4e3a\u5f53\u4eca\u7684\u6807\u51c6\u3002<\/li>\n
  3. \u81ea\u52a8\u5316\u90e8\u7f72\uff1a\u6211\u66f4\u4e60\u60ef\u628a\u4ee3\u7801\u63a8\u9001\u5230\u4ee3\u7801\u4ed3\u5e93\uff0c\u7136\u540e\u4f7f\u7528Codeship\u8fd9\u6837\u7684\u5de5\u5177\u81ea\u52a8\u6d4b\u8bd5\uff0c\u6d4b\u8bd5\u901a\u8fc7\u540e\u81ea\u52a8\u5c06\u4ee3\u7801\u90e8\u7f72\u5230\u751f\u4ea7\u73af\u5883\u7684\u670d\u52a1\u5668\u3002\u6211\u5e0c\u671bDocker\u80fd\u5b8c\u6210\u76f8\u540c\u7684\u5de5\u4f5c\u3002\n

    ## \u64cd\u4f5c\u5c31\u50cf\u4e4b\u524d\u6211\u8bf4\u8fc7\u7684\uff0c\u6211\u5e0c\u671b\u90e8\u7f72\u8fc7\u7a0b\u8d8a\u7b80\u5355\u8d8a\u597d\u3002\u5982\u679c\u4f60\u770b\u8fc7Docker:Part4<\/a>\u8fd9\u4e2a\u89c6\u9891\uff0c\u53ef\u80fd\u5bf9\u4ee5\u4e0b\u547d\u4ee4\u6709\u6240\u719f\u6089\uff0c\u5b83\u542f\u52a8\u4e86\u4e00\u4e2a\u53ebdb\u7684\u5bb9\u5668\uff08\u8dd1postgres\u6570\u636e\u5e93\uff09\uff0c\u4e4b\u540e\u53c8\u542f\u52a8\u4e86\u4e00\u4e2a\u53ebweb\u7684\u5bb9\u5668\uff0c\u6700\u540e\u5c06\u5bb9\u5668\u201cweb\u201d\u8ddf\u5bb9\u5668\u201cdb\u201d\u8fde\u63a5\u8d77\u6765\u3002<\/p>\n<\/li>\n<\/ol>\n

    \r\n$\u00a0docker\u00a0run\u00a0-d\u00a0--name\u00a0db\u00a0training\/postgres\r\n$\u00a0docker\u00a0run\u00a0-i\u00a0-t\u00a0--name\u00a0web\u00a0--link\u00a0db:db\u00a0-p\u00a045000:80\r\n<\/pre>\n

    \u5f53\u7136\u5982\u679c\u4f60\u7167\u7740\u8fd9\u4e48\u505a\u6765\u90e8\u7f72\u7a0b\u5e8f\uff0c\u5f53\u4f60\u6572\u4e86\u5f88\u591a\u6b21\u8fd9\u6837\u7684\u547d\u4ee4\u540e\uff0c\u800c\u4e14\u4fdd\u8bc1\u4e0d\u9057\u6f0f\u7684\u6572\u4e86\u5f88\u591a\u6b21\u8fd9\u79cd\u547d\u4ee4\u540e\uff0c\u4f60\u4f1a\u53d1\u73b0\u8fd9\u662f\u4e2a\u201c\u5751\u7239\u7684\u201d\u5669\u68a6\u3002\u8fd9\u5c31\u662f\u4e3a\u4ec0\u4e48\u4f1a\u6709Fig<\/a>\u7684\u539f\u56e0\u3002<\/p>\n

    FIG<\/strong><\/span><\/div>\n

    \u5982\u679c\u4f60\u7528Dockerfile\u6765\u5b9a\u4e49\u5982\u4f55\u751f\u6210\u4f60\u7684\u5bb9\u5668\uff0c\u90a3\u4e48Fig\u5219\u53ef\u4ee5\u5e2e\u4f60\u5b9a\u4e49\u6574\u4e2a\u5bb9\u5668\u7684\u8fd0\u884c\u6846\u67b6\u3002Fig\u5c06\u201c\u6dfb\u52a0\u6570\u636e\u5377\uff08add volumes\uff09\u201d\u3001\u201c\u8fde\u63a5\u5bb9\u5668\u201d\uff08link container\uff09\u4e0e\u201c\u6620\u5c04\u7aef\u53e3\u201d\u7b49\u64cd\u4f5c\u90fd\u5c01\u88c5\u5230\u4e00\u4e2aYAML\u7684\u63cf\u8ff0\u6587\u4ef6\u4e2d\uff1b\u5982\u540c\u524d\u9762\u63d0\u5230\u7684CodeTV\u4e2d\u63cf\u8ff0\u7684\u90a3\u4e2a\u64cd\u4f5c\u5728Fig\u4e2d\u7b80\u5316\u6210\u5982\u4e0b\u5f62\u5f0f\uff1a<\/p>\n

    \r\nweb:\r\nbuild:\u00a0.\r\nports:\r\n-\u00a0\"80:80\"\r\nlinks:\r\n-\u00a0db\r\n\r\ndb:\r\nimage:\u00a0postgres\r\nports:\r\n-\u00a0\"5432\"\r\n\r\nvolumes:\r\n-\u00a0\/etc\/postgresql\r\n-\u00a0\/var\/log\/postgresql\r\n-\u00a0\/var\/lib\/postgresql\r\n<\/pre>\n

    \u6211\u5728YAML\u4e2d\u5b9a\u4e49\u4e86\u4e24\u4e2a\u5bb9\u5668\uff1aweb\u4e0edb\uff1b\u5bb9\u5668web\u751f\u6210\u81ea\u5f53\u524d\u6587\u4ef6\u5939\u4e0b\u7684Dockerfile\uff0c\u5411\u5916\u66b4\u9732\u4e8680\u53f7\u7aef\u53e3\uff0c\u540c\u65f6\u94fe\u63a5\u5230\u4e86\u5bb9\u5668db\u3002\u5bb9\u5668db\u751f\u6210\u81eaDockerHub\u7684PostgreSQL\u955c\u50cf\uff0c\u5411\u5916\u66b4\u97325432\u53f7\u7aef\u53e3\u3002\u4f7f\u7528\u6b64YAML\u914d\u7f6e\u6587\u4ef6\uff0cfig\u53ef\u4ee5\u7528\u4ee5\u4e0b\u547d\u4ee4\u751f\u6210\u5bb9\u5668\uff0c\u7136\u540e\u4f9d\u7167\u914d\u7f6e\u6587\u4ef6\u7684\u610f\u56fe\u542f\u52a8\u5b83\u4eec\u3002<\/p>\n

    \r\n$\u00a0fig\u00a0build\r\n$\u00a0fig\u00a0up\u00a0-d\r\n<\/pre>\n

    Fig\u4f1a\u5148\u542f\u52a8\u88ab\u94fe\u63a5\u7684\u5bb9\u5668db\uff0c\u8fd9\u6837\u5bb9\u5668web\u5c31\u4e0d\u81f3\u4e8e\u8fde\u4e0d\u4e0a\u6570\u636e\u5e93\u3002-d<\/span>\u53c2\u6570\u8868\u793a\u4ee5\u540e\u53f0\u8fd0\u884c\u7684\u65b9\u5f0f\u542f\u52a8\u5bb9\u5668\uff0c\u8fd9\u6837\u53ef\u4ee5\u4fdd\u8bc1\u7528\u6237\u767b\u51fa\u64cd\u4f5c\u7cfb\u7edf\u540e\uff0c\u5bb9\u5668\u4efb\u7136\u5728\u8fd0\u884c\u3002\u60a8\u53ef\u4ee5\u767b\u5f55Fig\u7684\u5b98\u65b9\u7f51\u7ad9\u83b7\u53d6\u66f4\u591a\u7684\u914d\u7f6e\u4fe1\u606f\u3002<\/p>\n

    \u90e8\u7f72<\/strong><\/span><\/div>\n

    \u73b0\u5728\u6211\u4eec\u53ef\u4ee5\u5f88\u5bb9\u6613\u7684\u542f\u52a8\u4e00\u4e2aDocker\u5bb9\u5668\uff0c\u4f46\u662f\u600e\u4e48\u5728\u751f\u4ea7\u73af\u5883\u4e0b\u90e8\u7f72Docker\u5bb9\u5668\u5462\uff1f\u5982\u679c\u5728\u751f\u4ea7\u73af\u5883\u4e0b\u5b89\u88c5\u4e86Fig\u4e0eDocker\uff0c\u6211\u4eec\u6240\u6709\u8981\u505a\u7684\u5c31\u662f\u514b\u9686\u4e4b\u524d\u7684\u5bb9\u5668\u955c\u50cf\uff0c\u7136\u540e\u7528\u76f8\u540c\u7684fig\u547d\u4ee4\u6765\u542f\u52a8\u5bb9\u5668\u3002\u4f46\u662f\uff0c\u73b0\u5728\u7684\u95ee\u9898\u662f\u5982\u4f55\u66f4\u65b0\u7ebf\u4e0a\u8fd0\u884c\u7684\u5bb9\u5668\u3002<\/p>\n

    \u4e0d\u5e78\u7684\u662f\uff0cFig\u53ef\u4ee5\u975e\u5e38\u4f18\u96c5\u7684\u542f\u52a8\u4e00\u4e2a\u5bb9\u5668\uff0c\u4f46\u662f\u5b83\u5e76\u4e0d\u64c5\u957f\u66f4\u65b0\u5e76\u91cd\u542f\u670d\u52a1\u3002\u5f53\u7136\uff0c\u4f60\u53ef\u4ee5\u5728\u4ee3\u7801\u4ed3\u5e93\u62c9\u53d6\u7a0b\u5e8f\u7684\u66f4\u65b0\uff0c\u7136\u540e\u91cd\u65b0\u8fd0\u884c\u4ee5\u4e0a\u7684fig\u547d\u4ee4\u6765\u8fbe\u5230\u8fd9\u4e2a\u76ee\u7684\uff1b\u4f46\u662f\uff0c\u5728\u5bb9\u5668\u5728\u66f4\u65b0\u4ee3\u7801\uff0c\u91cd\u65b0\u542f\u52a8\u7684\u8fc7\u7a0b\u4e2d\uff0c\u5c31\u4e0d\u80fd\u5bf9\u5916\u63d0\u4f9b\u670d\u52a1\u4e86\u3002\u4e3a\u4e86\u5e94\u5bf9\u8fd9\u79cd\u60c5\u51b5\uff0c\u6211\u4eec\u4f7f\u7528\u539f\u751f\u7684Docker\u547d\u4ee4\uff0c\u5e76\u5f15\u5165Nginx\u505a\u53cd\u5411\u4ee3\u7406\uff08\u6ce8\uff1a\u8f6f\u8d1f\u8f7d\uff09\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\u3002<\/p>\n

    \u6211\u4eec\u9996\u5148\u628a\u5bb9\u5668\u76d1\u542c\u7684\u7aef\u53e3\u4fee\u6539\u6389\uff0c\u56e0\u4e3aNginx\u9700\u8981\u76d1\u542c80\u53f7\u7aef\u53e3\u3002\u6211\u4eec\u8fd9\u4e48\u4fee\u6539\uff1a<\/p>\n

    \r\nweb:\r\nbuild:\u00a0.\r\nports:\r\n-\u00a0\"8080:80\"\r\nlinks:\r\n-\u00a0db\r\n...\r\n<\/pre>\n

    \u901a\u8fc7\u4fee\u6539Fig\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u6211\u4eec\u7684web\u5bb9\u5668\u4fee\u6539\u6210\u76d1\u542c8080\u53f7\u7aef\u53e3\u3002\u800cNginx\u8981\u914d\u7f6e\u62108080\u4e0e8081\u7aef\u53e3\u7684\u8d1f\u8f7d\u5747\u8861\uff1b\u6240\u4ee5Nginx\u7684\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n

    \r\nupstream\u00a0docker\u00a0{\r\nserver\u00a0127.0.0.1:8080;\r\nserver\u00a0127.0.0.1:8081;\r\n}\r\n\r\nserver\u00a0{\r\nlisten\u00a080;\r\nlocation\u00a0\/\u00a0{\r\nproxy_pass\u00a0http:\/\/docker;\r\n}\r\n}\r\n<\/pre>\n

    \u91cd\u542fNginx\u540e\uff0cNginx\u5c31\u5f00\u59cb\u57288080\u4e0e8081\u53f7\u7aef\u53e3\u4e4b\u95f4\u505a\u53cd\u5411\u4ee3\u7406\uff08\u8f6f\u8d1f\u8f7d\uff09\uff1b\u5f53\u5176\u4e2d\u4efb\u4f55\u4e00\u4e2a\u7aef\u53e3\u5931\u6548\u540e\uff0cNginx\u5c06\u8bf7\u6c42\u81ea\u52a8\u8f6c\u53d1\u5230\u53e6\u4e00\u4e2a\uff0c\u76f4\u5230\u5931\u6548\u540e\u7684\u7aef\u53e3\u6062\u590d\u3002\u8fd9\u6837\uff0c\u6211\u4eec\u5c31\u80fd\u4eceGit\u4e2d\u62c9\u53d6\u66f4\u65b0\uff0c\u7136\u540e\u8fd0\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u5c06\u5176\u542f\u52a8\uff1a<\/p>\n

    \r\n$\u00a0docker\u00a0run\u00a0-d\u00a0--name\u00a0web1\u00a0--link\u00a0codetvjournal_db_1:db\u00a0-p\u00a08081:80\u00a0codetvjournal_web:latest\r\n<\/pre>\n

    \u5f53\u6211\u4eec\u786e\u5b9a8081\u53f7\u7aef\u53e3\u7684web1\u5bb9\u5668\u542f\u52a8\u5e76\u670d\u52a1\u6b63\u5e38\u540e\uff0c\u6211\u4eec\u5c31\u53ef\u4ee5\u505c\u6b628080\u53f7\u7aef\u53e3\u7684\u670d\u52a1\u5e76\u5f00\u59cb\u4e3a8080\u53f7\u7aef\u53e3\u670d\u52a1\u8fdb\u884c\u66f4\u65b0\u4e86\u3002\u6211\u63a8\u8350\u4f7f\u7528\u539f\u751f\u7684docker\u547d\u4ee4\u800c\u4e0d\u4f7f\u7528Fig\u6765\u5b8c\u6210\u8fd9\u4e2a\u5de5\u4f5c\uff0c\u56e0\u4e3a\u8fd9\u6837\u53ef\u4ee5\u907f\u514d\u5e72\u6270\u5230\u6b63\u5728\u8fd0\u884c\u7684db\u5bb9\u5668\uff08\u6ce8\uff1a\u4f5c\u8005\u53ef\u80fd\u6307\u7684\u662f\u4e4b\u524d\u5199\u597d\u7684YAML\uff0c\u91cc\u9762\u5305\u542b\u4e86\u542f\u52a8db\u5bb9\u5668\u7684\u914d\u7f6e\uff09<\/p>\n

    \u6211\u4eec\u53ef\u4ee5\u7528\u4e0a\u8ff0\u65b9\u6cd5\u521b\u5efa\u5f88\u591a\u4e2aweb\u5bb9\u5668\uff0c\u53ea\u8981\u4fdd\u8bc1\u5b83\u4eec\u5360\u7528\u7684\u7aef\u53e3\u4e0e\u5bb9\u5668\u540d\u4e0d\u540c\u5373\u53ef\uff1b\u540c\u65f6\u4f7f\u7528Nginx\u5728\u5b83\u4eec\u524d\u7aef\u505a\u8d1f\u8f7d\u5373\u53ef\u5b9e\u73b0\u4e0d\u6389\u7ebf\u7684\u7a0b\u5e8f\u5347\u7ea7\u3002<\/p>\n

    \u81ea\u52a8\u5316<\/strong><\/span><\/div>\n

    \u90a3\u4e48\u95ee\u9898\u53c8\u6765\u4e86\uff0c\u600e\u4e48\u5c06\u4e0a\u8ff0\u7684\u66f4\u65b0\u6d41\u7a0b\u81ea\u52a8\u5316\u8fd0\u884c\u5462\uff1f\u6709\u4e24\u4e2a\u65b9\u5f0f\u53ef\u4ee5\u8fbe\u5230\uff1a<\/p>\n

      \n
    1. \u5c06\u5bb9\u5668\u66f4\u65b0\u3001\u542f\u505c\u3001\u5207\u6362\u7b49\u64cd\u4f5c\u5c01\u88c5\u5230\u4e00\u4e2a\u5355\u4e00\u7684\u811a\u672c\u4e2d\uff0c\u8fd9\u4e2a\u811a\u672c\u53ef\u4ee5\u52a0\u5165\u5230\u4f20\u7edf\u7684\u4e0a\u7ebf\u6d41\u7a0b\uff08\u6ce8\uff1a\u65b0\u4ee3\u7801\u62c9\u53d6\uff0c\u81ea\u52a8\u6d4b\u8bd5\uff0c\u81ea\u52a8\u90e8\u7f72\u7684\u6d41\u7a0b\uff0c\u4f5c\u8005\u79f0\u4e4b\u4e3adeployment pipeline\uff09\u4e4b\u540e\u6267\u884c\uff1b<\/li>\n
    2. \u53e6\u4e00\u79cd\u65b9\u5f0f\u662f\uff0c\u4f7f\u7528\u7c7b\u4f3cConsul\u6216\u8005etcd\u7b49\u7684\u53d1\u73b0\u670d\u52a1\u6765\u7ba1\u7406\u5bb9\u5668\u7684\u66f4\u65b0\uff0c\u542f\u505c\uff0c\u4e0e\u53d1\u73b0\uff1b\u8fd9\u4f1a\u66f4\u52a0\u201c\u9ad8\u5927\u4e0a\u201d\u3002<\/li>\n<\/ol>\n

      \u6240\u4ee5\uff0c\u4f7f\u7528Docker\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u90e8\u7f72\u670d\u52a1\u4e0d\u50cf\u4f60\u60f3\u8c61\u4e2d\u90a3\u4e48\u5bb9\u6613\u3002\u6211\u63a8\u8350\u5927\u5bb6\u8bd5\u8bd5\u4e0a\u9762\u6240\u8bf4\u7684\u65b9\u6cd5\uff1b\u540c\u65f6\u5206\u4eab\u4f60\u81ea\u5df1\u7684\u5b9e\u8df5\u7ecf\u9a8c\u7ed9\u5927\u5bb6\uff0c\u8fd9\u4f1a\u5e2e\u52a9\u5927\u5bb6\u4e00\u540c\u4f7f\u7528Docker\u3002Docker\u8fd8\u662f\u4e2a\u5f88\u5e74\u8f7b\u7684\u4ea7\u54c1\uff0c\u540c\u65f6\u53c8\u662f\u4e2a\u975e\u5e38\u70ed\u95e8\u7684\u4ea7\u54c1\uff0c\u5b83\u80af\u5b9a\u4f1a\u5728\u672a\u6765\u4e0d\u65ad\u7684\u6f14\u5316\u5347\u7ea7\u3002<\/p>\n

      \n

      \u539f\u6587\u6765\u81ea\uff1ahttps:\/\/www.codeschool.com\/blog\/2015\/01\/16\/production-deployment-docker\/<\/a><\/p>\n

      \u8f6c\u8f7d\u5730\u5740\uff1ahttp:\/\/dockone.io\/article\/155<\/a><\/p>\n

      \u672c\u6587\u5730\u5740\uff1ahttp:\/\/gulass.cn\/docker-production-env.html<\/a>\u7f16\u8f91\uff1a\u6768\u9e4f\u98de\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

      \u5bfc\u8bfb Docker\u73b0\u5728\u8d8a\u6765\u8d8a\u6d41\u884c\uff0c\u4f46\u662f\u771f\u6b63\u5728\u751f\u4ea7\u73af\u5883\u90e8\u7f72Docker\u8fd8\u662f\u4e2a\u6bd4\u8f83\u65b0\u7684\u6982\u5ff5\uff0c\u8fd8\u6ca1\u6709\u4e00\u4e2a\u6807\u51c6\u7684\u6d41\u7a0b\u3002 […]<\/p>\n","protected":false},"author":63,"featured_media":6236,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-13066","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/13066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/comments?post=13066"}],"version-history":[{"count":12,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/13066\/revisions"}],"predecessor-version":[{"id":253814,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/posts\/13066\/revisions\/253814"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media\/6236"}],"wp:attachment":[{"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/media?parent=13066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/categories?post=13066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gulass.cn\/wp-json\/wp\/v2\/tags?post=13066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}