{"id":153855,"date":"2020-09-09T15:40:13","date_gmt":"2020-09-09T07:40:13","guid":{"rendered":"http:\/\/4563.org\/?p=153855"},"modified":"2020-09-09T15:40:13","modified_gmt":"2020-09-09T07:40:13","slug":"%e8%af%b7%e6%95%99-docker-%e5%ae%b9%e5%99%a8%e5%a6%82%e4%bd%95%e4%b8%8e%e4%b8%bb%e6%9c%ba%e5%90%8c%e7%bd%91%e6%ae%b5%e5%85%b6%e5%ae%83%e4%b8%bb%e6%9c%ba%e4%ba%92%e9%80%9a%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=153855","title":{"rendered":"[\u8bf7\u6559] Docker \u5bb9\u5668\u5982\u4f55\u4e0e\u4e3b\u673a\u540c\u7f51\u6bb5\u5176\u5b83\u4e3b\u673a\u4e92\u901a\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  [\u8bf7\u6559] Docker \u5bb9\u5668\u5982\u4f55\u4e0e\u4e3b\u673a\u540c\u7f51\u6bb5\u5176\u5b83\u4e3b\u673a\u4e92\u901a\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : xuerui911 <\/span>  <span><i><\/i> 1<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u6211\u6700\u8fd1\u5728\u5b66\u4e60\u5927\u6570\u636e\uff0cHadoop Zookeeper Hive Flume Kafka HBase \u7b49\u7b49\uff0c\u9700\u8981\u540c\u65f6\u5f00 5 \u4e2a VMWare \u865a\u62df\u673a\uff0c5 \u4e2a\u865a\u62df\u673a\u548c\u4e3b\u673a Windows \u7684 IDEA \u4e92\u76f8\u8bbf\u95ee\u3002<br \/>\u7b14\u8bb0\u672c\u98ce\u6247\u8d77\u98de\uff0c\u98ce\u6247\u7206\u70b8\u5435\u3002<\/p>\n<p>\u6211\u67e5\u5230 Docker \u662f\u66f4\u8f7b\u91cf\u5316\u7684\u865a\u62df\u5316\u6280\u672f\uff0c\u5c31\u7b80\u5355\u5b66\u4e60\u4e86 Docker \u3002<br \/>\u6211\u7406\u89e3 Docker0 \u6240\u8c13\u7684\u6865\u63a5\u5176\u5b9e\u662f NAT\uff0c\u5e76\u4e0d\u80fd\u50cf VMWare \u6865\u63a5\u4e00\u6837\u8fd0\u884c\u5728\u5bbf\u4e3b\u673a\u7f51\u5361\u540c\u7f51\u6bb5\u3002\u6211\u60f3\u8ba9\u5bb9\u5668\u8fd0\u884c\u5728 Linux \u5bbf\u4e3b\u673a\u540c\u4e00\u7f51\u6bb5\u3002<br \/>VMWare NAT 192.168.111.1\uff0cLinux \u5bbf\u4e3b\u673a 192.168.111.100 \uff0c\u5bb9\u5668 192.168.111.101~192.168.111.105 \u8fd9\u6837\u3002<br \/>\u6211\u67e5\u5230\u53ef\u4ee5 docker network create -d macvlan \u518d\u540e\u8fb9\u90a3\u5806\u53c2\u6570\uff0c\u8fd9\u6837\u5bb9\u5668 ip \u786e\u5b9e\u548c\u865a\u62df\u673a\u540c\u7f51\u6bb5\uff0c\u5728 Windows \u4e0a\u80fd ping \u901a\u5bb9\u5668\uff0c\u4f46\u5bb9\u5668 ping \u4e0d\u901a\u4e3b\u673a\uff0c\u66f4\u8fde\u4e0d\u4e0a\u5916\u7f51\u3002\u8fd8\u53ef\u4ee5\u8ba9 docker \u7f51\u5361\u7c7b\u578b\u4e3a none \u7136\u540e\u7528 pipework \u6307\u5b9a IP\uff0c\u4f46\u6211\u6309\u767e\u5ea6\u5230\u7684\u4e00\u4e9b\u4eba\u7684\u6559\u7a0b\u4fee\u6539\u7f51\u5361\u6587\u4ef6\u540e\uff0cxshell \u76f4\u63a5\u8fde\u4e0d\u4e0a\u4e86\uff0c\u91cd\u542f\u670d\u52a1\u91cd\u542f\u865a\u62df\u673a\u90fd\u4e0d\u884c\u3002<\/p>\n<p>\u6c42\u5927\u4f6c\u8be6\u7ec6\u6307\u70b9      <\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3228437\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jirajine <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/fuckcloudnative.io\/posts\/netwnetwork-virtualization-macvlan\/                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3228438\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 594duck <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5750\u7b49\u4e0a\u4e86 docker \u4f9d\u65e7\u98ce\u6247\u7206\u7092\u3002<\/p>\n<p>docker \u4e0d\u89e3\u51b3 IO \u95ee\u9898\u3002\u4f46\u662f docker \u5439\u4f1a\u8ba9\u4f60\u5728\u6ca1\u89e3\u51b3\u81ea\u5df1\u95ee\u9898\u524d\u5148\u8fdb\u5165 K8s \u95ee\u9898                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3228439\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : defunct9 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Jirajine \u770b\u8fd9\u4e2a\u8fd8\u5f97\u4ea4\u94b1\uff0c\u63a8\u8350\u4e2a\u9524\u5b50\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3228440\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : xuerui911 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Jirajine emmmmmmmmmm \u8fd8\u8ba9\u5173\u6ce8\u516c\u4f17\u53f7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3228441\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : xuerui911 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @594duck \u6211\u89c9\u5f97 1 \u4e2a centos5 \u4e2a\u5bb9\u5668\u76f8\u6bd4 5 \u4e2a centos\uff0c\u597d\u6b79\u5c11\u4e86 4 \u4e2a centos \u7684\u7cfb\u7edf\u5360\u7528\uff0cCPU \u8d1f\u8f7d\u5e94\u8be5\u4f1a\u5c0f\u4e0d\u5c11\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3228442\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 594duck <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @xuerui911 \u4f60\u8dd1\u8d77\u6765\u5c31\u77e5\u9053\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3228443\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fub2020 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6620\u5c04\u7aef\u53e3\u8bbf\u95ee\u5457                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>[\u8bf7\u6559] Docker \u5bb9\u5668\u5982\u4f55\u4e0e&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/153855"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=153855"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/153855\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=153855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=153855"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=153855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}