{"id":6235,"date":"2022-06-18T10:14:21","date_gmt":"2022-06-18T02:14:21","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=6235"},"modified":"2022-06-19T01:01:37","modified_gmt":"2022-06-18T17:01:37","slug":"docker-replace-virtual-machine","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/docker-replace-virtual-machine.html","title":{"rendered":"Docker \u4f1a\u53d6\u4ee3\u865a\u62df\u673a\u5417?"},"content":{"rendered":"
\u672c\u6587\u7531lrxjmw.cn\u56e2\u961f\u6210\u5458\u5cb3\u56fd\u5e05<\/span>\u6574\u7406\u53d1\u5e03\uff0c\u539f\u6587\u6765\u81ea\uff1aLinux\u4e2d\u56fd<\/a>\u3002<\/p>\n<\/div>\n <\/p>\n \u4e3a\u4e86\u89e3\u7b54\u8fd9\u4e9b\u95ee\u9898\uff0c\u8ba9\u6211\u4eec\u5148\u6765\u7b80\u5355\u7684\u56de\u987e\u4e00\u4e0b\u8fc7\u53bb\u7684\u53d1\u5c55\u5386\u7a0b\u5427\uff0c\u8fd9\u6837\u4e5f\u8bb8\u80fd\u591f\u4fc3\u4f7f\u6211\u4eec\u66f4\u597d\u7684\u4e86\u89e3\u5f53\u4e0b\u7684\u72b6\u51b5\u548c\u5c55\u671b\u672a\u6765\u3002<\/p>\n \u5728\u865a\u62df\u673a\u6280\u672f\u666e\u53ca\u4e4b\u524d\uff0c\u7cfb\u7edf\u7ba1\u7406\u5458\u4eec\u4e60\u60ef\u4e8e\u4e0a\u7ebf\u7269\u7406\u670d\u52a1\u5668\u6765\u4e3a\u4ed6\u4eec\u7684\u7528\u6237\u63d0\u4f9b\u670d\u52a1\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u5f88\u7e41\u7410\uff0c\u65e0\u6cd5\u5b9e\u73b0\u5b8c\u5168\u7684\u81ea\u52a8\u5316\uff0c\u5e76\u4e14\u9700\u8981\u82b1\u8d39\u51e0\u4e2a\u5c0f\u65f6\u751a\u81f3\u51e0\u5929\u3002\u5982\u679c\u51fa\u95ee\u9898\u4e86\uff0c\u4ed6\u4eec\u53ea\u80fd\u8dd1\u5230\u673a\u623f\u53bb\u66f4\u6362\u7269\u7406\u5143\u4ef6\u3002<\/p>\n \u4f34\u968f\u7740\u865a\u62df\u673a\u7684\u51fa\u73b0\uff0cDevOps\u4eba\u5458\u53ef\u4ee5\u5728\u4ed6\u4eec\u6240\u6709\u7684\u7269\u7406\u670d\u52a1\u5668\u4e0a\u4efb\u610f\u7684\u5b89\u88c5Hypervisor\uff0c\u7136\u540e\u4ed6\u4eec\u4fbf\u53ef\u4ee5\u5728\u7528\u6237\u63d0\u51fa\u7533\u8bf7\u65f6\u76f4\u63a5\u5206\u914d\u65b0\u7684\u865a\u62df\u673a\u3002\u4e0a\u7ebf\u4e00\u53f0\u865a\u62df\u673a\u4e0d\u518d\u9700\u8981\u51e0\u4e2a\u5c0f\u65f6\uff0c\u800c\u4ec5\u4ec5\u53ea\u9700\u8981\u51e0\u5206\u949f\u5c31\u591f\u4e86\uff0c\u800c\u4e14\u53ef\u4ee5\u81ea\u52a8\u5316\u5b8c\u6210\u3002\u5e95\u5c42\u786c\u4ef6\u7684\u5dee\u5f02\u8d8a\u6765\u8d8a\u5c11\uff0c\u800c\u66f4\u591a\u7684\u662f\u53d8\u5f97\u5546\u52a1\u5316\u3002\u5982\u679c\u67d0\u4e2a\u7528\u6237\u9700\u8981\u66f4\u591a\u989d\u5916\u7684\u8d44\u6e90\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u865a\u62df\u673a\u5c31\u884c\u4e86\u3002\u5982\u679c\u4e00\u4e2a\u7269\u7406\u4e3b\u673a\u51fa\u73b0\u4e86\u6545\u969c\uff0c\u7ba1\u7406\u5458\u53ea\u9700\u8981\u5c06\u8be5\u5bbf\u4e3b\u673a\u627f\u8f7d\u7684\u865a\u62df\u673a\u8fc1\u79fb\u6216\u6062\u590d\u5230\u53e6\u5916\u7684\u5bbf\u4e3b\u673a\u5373\u53ef\u3002\u66f4\u7ec6\u81f4\u7684\u90e8\u7f72\u6a21\u5f0f\u53d8\u5f97\u53ef\u884c\u548c\u6613\u4e8e\u64cd\u4f5c\u3002<\/p>\n \u51e0\u5e74\u8fc7\u53bb\u4e86\uff0c\u4eba\u4eec\u5df2\u7ecf\u4e60\u60ef\u4e8e\u901a\u8fc7\u865a\u62df\u673a\u6765\u627f\u8f7d\u4ed6\u4eec\u7684\u4e1a\u52a1\u3002\u521d\u521b\u516c\u53f8\u751a\u81f3\u4e8e\u4e0d\u518d\u503e\u5411\u4e8e\u8d2d\u4e70\u670d\u52a1\u5668\u786c\u4ef6\u8d44\u6e90\u4e86\uff0c\u4ed6\u4eec\u53ea\u9700\u8981\u8d2d\u4e70\u4e9a\u9a6c\u900a\u7684AWS\u670d\u52a1\u5373\u53ef\u3002\u5982\u4eca\uff0c\u6bcf\u4e2a\u5e94\u7528\u4e00\u53f0\u865a\u62df\u673a\u5df2\u7ecf\u6210\u4e3a\u4e86\u90e8\u7f72\u8f6f\u4ef6\u6808\u7684\u6807\u51c6\u65b9\u5f0f\u3002\u81ea\u4e0a\u4e16\u7eaa90\u5e74\u4ee3\u4ee5\u6765\uff0c\u5e94\u7528\u7a0b\u5e8f\u7684\u90e8\u7f72\u65b9\u5f0f\u5176\u5b9e\u5e76\u6ca1\u6709\u4ec0\u4e48\u592a\u5927\u7684\u53d8\u52a8\u3002\u4ece\u90a3\u65f6\u5019\u5f00\u59cb\uff0c\u5982\u679c\u6211\u4eec\u9700\u8981\u90e8\u7f72\u4e00\u4e2a\u5e94\u7528\uff0c\u90a3\u4fbf\u9700\u8981\u5b89\u88c5\u4e00\u4e2alinux\u53d1\u884c\u7248\u672c\uff0c\u800c\u6784\u5efa\u7684\u4e3b\u8981\u610f\u4e49\u5728\u4e8e\u9a71\u52a8\u786c\u4ef6\u8bbe\u5907\uff0c\u7136\u540e\u6211\u4eec\u9700\u8981\u5b89\u88c5\u5e94\u7528\u6240\u9700\u8981\u7684deb\u6216\u8005rpm\u5305\uff0c\u6700\u540e\u624d\u5b89\u88c5\u548c\u914d\u7f6e\u6211\u4eec\u771f\u6b63\u60f3\u8981\u8fd0\u884c\u7684\u90a3\u4e2a\u5e94\u7528\u3002<\/p>\n Docker \u6700\u7a81\u51fa\u7684\u521b\u65b0\u4e4b\u5904\u5728\u4e8e\u5f15\u5165\u4e86\u4e00\u6574\u5957\u5305\u62ecregistry\u5728\u5185\u7684\u4e91\u5e94\u7528\u6807\u51c6\u89c4\u8303\u3002\u5b83\u4e0d\u518d\u662f\u4f7f\u7528\u865a\u62df\u673a\u7684\u65b9\u5f0f\u6765\u8fd0\u884c\u4e91\u5e94\u7528\uff0c\u53d6\u800c\u4ee3\u4e4b\u7684\u662f\u5229\u7528Linux\u5bb9\u5668\u3002\u5bb9\u5668\u6280\u672f\u5b9e\u9645\u4e0a\u5728\u591a\u5e74\u524d\u5c31\u5df2\u7ecf\u51fa\u73b0\uff0c\u4f46\u662f\u4e00\u76f4\u4ee5\u6765\u53ea\u662f\u5728\u6709\u9650\u7684\u51e0\u4e2a\u5708\u5b50\u91cc\u4f20\u64ad\uff0c\u5e76\u6ca1\u6709\u88ab\u5927\u4f17\u5e7f\u6cdb\u63a5\u53d7\u3002\u5c3d\u7ba1\u4ed6\u4eec\u63d0\u4f9b\u4e86\u975e\u5e38\u597d\u7684\u6027\u80fd\u4f53\u9a8c\uff0c\u4f46\u662f\u8f83\u4e4b\u865a\u62df\u673a\u800c\u8a00\uff0c\u4ed6\u4eec\u63d0\u4f9b\u7684\u529f\u80fd\u5b9e\u5728\u6709\u9650\uff0c\u5e76\u4e14\u9694\u79bb\u6027\u65b9\u9762\u5f88\u5f31\u3002\u4f5c\u4e3a\u4e00\u4e2a\u540e\u8d77\u4e4b\u79c0\uff0cDocker\u4f7f\u5f97Linux\u5bb9\u5668\u7a81\u7136\u53d8\u5f97\u6d41\u884c\uff0c\u7136\u800cDocker\u4e4b\u6240\u4ee5\u6210\u529f\u4e0d\u80fd\u5b8c\u5168\u5f52\u529f\u4e8e\u5bb9\u5668\u3002\u8fd9\u53ea\u662f\u4e00\u4e2a\u5076\u7136\u7f62\u4e86\u3002<\/p>\n \u65b0\u7684\u65b9\u5411\u4f3c\u4e4e\u53ef\u4ee5\u7ed9\u6211\u4eec\u7684\u7528\u6237\u63d0\u4f9b\u4e00\u4e2a\u4e24\u5168\u5176\u7f8e\u7684\u65b9\u6848\uff1aDocker\u7684\u4fbf\u5229\u6027\u548c\u865a\u62df\u673a\u7684\u5b89\u5168\u6027\u7684\u5b8c\u7f8e\u7ed3\u5408\u3002\u5728\u53ef\u4ee5\u9884\u89c1\u7684\u672a\u6765\uff0cDocker\u4e5f\u8bb8\u4e0d\u4f1a\u548c\u865a\u62df\u673a\u4ea7\u751f\u4efb\u4f55\u7684\u7ade\u4e89\u5173\u7cfb\uff0c\u53d6\u800c\u4ee3\u4e4b\u7684\u662f\uff0c\u5b83\u5c06\u4f1a\u6210\u4e3a\u5176\u4f17\u591a\u627f\u8f7d\u5bf9\u8c61\u7684\u5176\u4e2d\u4e4b\u4e00\u3002<\/p>\n\n
\n \u5bfc\u8bfb<\/td>\n Docker \u65e0\u7591\u662f\u5f53\u4e0b\u6700\u5177\u5f71\u54cd\u529b\u7684\u5f00\u6e90\u9879\u76ee\u3002Docker \u4f55\u4ee5\u5982\u6b64\u7684\u6210\u529f? \u5b83\u4f1a\u5426\u53d6\u4ee3\u865a\u62df\u673a\uff0c\u8fd9\u6837\u7684\u8f6c\u53d8\u662f\u4e0d\u662f\u4f1a\u5728\u5c06\u6765\u67d0\u4e00\u5929\u51fa\u73b0\u7684\u4e00\u4e2a\u5de8\u5927\u7684\u4e34\u754c\u70b9\u65f6\u7a81\u7136\u7206\u53d1? \u5982\u679c\u662f\u7684\u8bdd\uff0c\u90a3\u4f1a\u662f\u4ec0\u4e48\u65f6\u5019?<\/strong><\/td>\n<\/tr>\n<\/table>\n
\n\u76f4\u52302013\u5e74\uff0cDocker\u63d0\u51fa\u4e86\u4e00\u4e2a\u7b80\u5355\u800c\u6709\u6548\u7684\u5de5\u5177\u6765\u521b\u5efa\u3001\u5206\u53d1\u548c\u90e8\u7f72\u5e94\u7528\u7a0b\u5e8f\uff0c\u5b83\u4eec\u4ee5\u4e00\u79cd\u5f88\u8d5e\u7684\u65b9\u5f0f\u8fd0\u884c\u5728\u76f8\u5bf9\u72ec\u7acb\u7684Linux\u5bb9\u5668\u91cc\u3002\u53e6\u5916\uff0c\u9488\u5bf9\u4f17\u591a\u7684\u5e94\u7528\u800c\u8a00\uff0c\u5b83\u63d0\u51fa\u4e86\u4e00\u4e2aregistry\u7684\u6982\u5ff5\uff0c\u8fd9\u6709\u70b9\u50cf\u82f9\u679c\u7684app store\uff0c\u8fd9\u91cc\u4e3a\u4e86\u6e05\u6670\u8d77\u89c1\uff0c\u6211\u5c06\u5176\u79f0\u4e4b\u4e3a\u201c\u4e91\u5e94\u7528\u201d\u3002\u90e8\u7f72 Nginx Web \u670d\u52a1\u5668\u5c31\u53d8\u6210\u4e86\u7c7b\u4f3c\u201ddocker pull nginx\u201d\u8fd9\u6837\u7b80\u5355\u3002\u8fd9\u6bd4\u5b89\u88c5\u4e00\u4e2a\u6700\u65b0\u7248\u7684Ubuntu LTS\u53ef\u7b80\u5355\u5feb\u6377\u591a\u4e86\u3002<\/p>\n\n