{"id":45202,"date":"2023-04-04T18:17:37","date_gmt":"2023-04-04T10:17:37","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=45202"},"modified":"2023-04-04T18:17:37","modified_gmt":"2023-04-04T10:17:37","slug":"docker-base-operater","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/docker-base-operater.html","title":{"rendered":"Docker \u4ece\u5165\u95e8\u5230\u7cbe\u901a\uff08\u4e00\uff09\u57fa\u672c\u64cd\u4f5c"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | docker \u662fLinux\u4e0b\u9762\u7684\u5bb9\u5668\u6280\u672f\uff0c\u662f\u76ee\u524d\u6700\u706b\u7684\u5f00\u6e90\u6280\u672f\u4e4b\u4e00\uff0c\u5728\u5927\u6570\u636e\uff0c\u4e91\u8ba1\u7b97\u7684\u65f6\u4ee3\u4e2d\uff0c\u6211\u4eec\u7684docker\u4e5f\u6e10\u6e10\u7684\u5c06\u5728\u865a\u62df\u5316\u6280\u672f\u4e0a\u9762\u8fdb\u4e00\u6b65\u53d1\u5c55\u3002\u5982\u679c\u73b0\u5728\u4f60\u8fd8\u4e0d\u77e5\u9053docker\uff0c \u90a3\u4f60\u5c31out\u4e86\u3002\u63a5\u4e0b\u6765\u6211\u4eec\u5c31\u4e00\u8d77\u6765\u201cDocker \u4ece\u5165\u95e8\u5230\u653e\u5f03\u201d\u5427<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n \u4e00\uff0c\u4e3a\u4ec0\u4e48\u8981\u7528 Docker\uff1f<\/strong><\/div>\n Docker \u662f\u4e00\u4e2a\u80fd\u591f\u628a\u5f00\u53d1\u5e94\u7528\u7a0b\u5e8f\u81ea\u52a8\u90e8\u7f72\u5230\u5bb9\u5668\u7684\u5f00\u6e90\u5f15\u64ce\u3002\u5b83\u7531Docker\u516c\u53f8\u7684\u56e2\u961f\u7f16\u5199\uff0c\u57fa\u4e8eApache 2.0\u5f00\u6e90\u534f\u8bae\u6388\u6743\u3002\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u7b80\u5355\u3001\u8f7b\u91cf\u7684\u5efa\u6a21\u65b9\u5f0f\uff0c\u4f7f\u5f00\u53d1\u751f\u547d\u5468\u671f\u66f4\u9ad8\u6548\u5feb\u901f\uff0c\u9f13\u52b1\u4e86\u9762\u5411\u670d\u52a1\u7684\u67b6\u6784\u8bbe\u8ba1\u3002Docker \u9879\u76ee\u7684\u76ee\u6807\u662f\u5b9e\u73b0\u8f7b\u91cf\u7ea7\u7684\u64cd\u4f5c\u7cfb\u7edf\u865a\u62df\u5316\u89e3\u51b3\u65b9\u6848\u3002 Docker \u7684\u57fa\u7840\u662f Linux \u5bb9\u5668\uff08LXC\uff09\u7b49\u6280\u672f\u3002\u5728 LXC \u7684\u57fa\u7840\u4e0a Docker \u8fdb\u884c\u4e86\u8fdb\u4e00\u6b65\u7684\u5c01\u88c5\uff0c\u8ba9\u7528\u6237\u4e0d\u9700\u8981\u53bb\u5173\u5fc3\u5bb9\u5668\u7684\u7ba1\u7406\uff0c\u4f7f\u5f97\u64cd\u4f5c\u66f4\u4e3a\u7b80\u4fbf\u3002\u7528\u6237\u64cd\u4f5c Docker \u7684\u5bb9\u5668\u5c31\u50cf\u64cd\u4f5c\u4e00\u4e2a\u5feb\u901f\u8f7b\u91cf\u7ea7\u7684\u865a\u62df\u673a\u4e00\u6837\u7b80\u5355\u3002<\/p>\n Docker \u7684\u7279\u70b9\uff1a<\/strong><\/span><\/div>\n 1\uff0c\u66f4\u5feb\u901f\u7684\u4ea4\u4ed8\u548c\u90e8\u7f72<\/p>\n 2\uff0c\u66f4\u9ad8\u6548\u7684\u865a\u62df\u5316<\/p>\n 3\uff0c\u66f4\u8f7b\u677e\u7684\u8fc1\u79fb\u548c\u6269\u5c55<\/p>\n 4\uff0c\u66f4\u7b80\u5355\u7684\u7ba1\u7406<\/p>\n \u5bb9\u5668\u6280\u672f\u4e0e\u4f20\u7edf\u865a\u62df\u673a\u6027\u80fd\u5bf9\u6bd4\uff1a<\/strong><\/span><\/div>\n <\/p>\n Docker\u4e0e\u865a\u62df\u673a\u5efa\u6784\u5bf9\u6bd4<\/p>\n <\/p>\n Docker \u5bb9\u5668\u672c\u8d28\u4e0a\u662f\u5bbf\u4e3b\u673a\u4e0a\u7684\u4e00\u4e2a\u8fdb\u7a0b\u3002Docker \u901a\u8fc7 namespace \u5b9e\u73b0\u4e86\u8d44\u6e90\u9694\u79bb\uff0c\u901a\u8fc7 cgroups \u5b9e\u73b0\u4e86\u8d44\u6e90\u7684\u9650\u5236\uff0c\u901a\u8fc7\u5199\u65f6\u590d\u5236\u673a\u5236\uff08copy-on-write\uff09\u5b9e\u73b0\u4e86\u9ad8\u6548\u7684\u6587\u4ef6\u64cd\u4f5c\u3002<\/p>\n Docker\u6709\u4e94\u4e2a\u547d\u540d\u7a7a\u95f4\uff1a<\/strong><\/span><\/div>\n
|