{"id":267825,"date":"2015-11-09T20:21:04","date_gmt":"2015-11-09T17:21:04","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=267825"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=267825","title":{"rendered":"Docker 1.9 + Weave 1.2.1 bridge mode"},"content":{"rendered":"<p>       \u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 Docker 1.9 \u0443 \u043c\u0435\u043d\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u0441\u044f \u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 <a href=\"http:\/\/weave.works\">Weave<\/a><br \/>  \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0438 \u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c<br \/>  <a name=\"habracut\"><\/a><br \/>  <b>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u21161<\/b>.<\/p>\n<p>  \u041f\u0440\u043e\u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432 Ubuntu 14.04.<\/p>\n<p>  \u041f\u0440\u0438 \u043f\u043e\u043f\u044b\u0442\u043a\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c weave launch \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:  <\/p>\n<pre><code class=\"bash\">root@sahara:~\/weave# \/usr\/local\/bin\/weave launch --no-dns --init-peer-count 8  --ipalloc-range 10.128.0.0\/10 10.43.68.61 10.43.68.62 10.43.68.63 10.43.68.64 10.43.68.65 10.43.68.69 10.43.68.70 Error deleting container: Error response from daemon: Unable to remove filesystem for 4f15a00bcf3b7d6df83ed8467cad98177df331d2deed580c4547effc2db13a02: remove \/var\/lib\/docker\/containers\/4f15a00bcf3b7d6df83ed8467cad98177df331d2deed580c4547effc2db13a02\/shm: device or resource busy <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u044d\u0442\u043e \u0443\u0436\u0435 \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430:<br \/>  <a href=\"https:\/\/github.com\/weaveworks\/weave\/issues\/1647\">github.com\/weaveworks\/weave\/issues\/1647<\/a><br \/>  <a href=\"https:\/\/github.com\/weaveworks\/weave\/issues\/1652\">github.com\/weaveworks\/weave\/issues\/1652<\/a><\/p>\n<p>  \u0422\u0430\u043c \u043f\u0438\u0448\u0443\u0442, \u0447\u0442\u043e, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043f\u0435\u0440\u0435\u0445\u043e\u0434 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 overlayfs \u0432\u043c\u0435\u0441\u0442\u043e aufs, \u043d\u043e \u043c\u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u044f\u0434\u0440\u0430 3.19 (\u043f\u0430\u043a\u0435\u0442 linux-image-extra-virtual-lts-vivid)<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0437\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u0440\u0435\u0431\u044f\u0442\u0430\u043c \u0438\u0437 Weave, \u0441\u0438\u0434\u044f\u0449\u0438\u043c \u043d\u0430 \u043a\u0430\u043d\u0430\u043b\u0435 #weavenetwork \u0432 IRC<\/p>\n<p>  <b>\u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u21162<\/b><\/p>\n<p>  \u0412\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441\u0432\u044f\u0437\u0430\u043d\u0430 \u0441 \u0442\u0435\u043c, \u0447\u0442\u043e \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e Weave \u0434\u043b\u044f \u0441\u0432\u044f\u0437\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u043e\u0432 \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 Mesos + Kubernetes, \u0438 \u043c\u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u044b \u0431\u043e\u043b\u0442\u0430\u044e\u0449\u0438\u0435\u0441\u044f \u043d\u0435\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u044b\u0435 eth0 \u0432 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u0445. \u0422\u0435\u043c \u0431\u043e\u043b\u0435\u0435, \u0447\u0442\u043e \u044f \u044d\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b \u0435\u0449\u0435 \u0432\u043e \u0432\u0440\u0435\u043c\u044f Weave 1.0, \u043a\u043e\u0433\u0434\u0430 \u0435\u0449\u0435 \u043d\u0435 \u0431\u044b\u043b\u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u043d\u044b \u043c\u0435\u0442\u043e\u0434\u044b \u0430\u0434\u0435\u043a\u0432\u0430\u0442\u043d\u043e\u0439 \u0441\u0432\u044f\u0437\u043a\u0438 Mesos \u0438 Weave.<\/p>\n<p>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c\u044b\u0439 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043c\u0435\u0442\u043e\u0434 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u0438 weave \u043a \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u043c\u043e\u0441\u0442\u0430 docker0 \u043d\u0430 weave.<br \/>  \u042d\u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u043b\u043e \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e Docker 1.8 + Weave 1.1.1<br \/>  \u0421\u0435\u0433\u043e\u0434\u043d\u044f \u0436\u0435 \u0432\u0441\u0435 \u0441\u043b\u043e\u043c\u0430\u043b\u043e\u0441\u044c:  <\/p>\n<pre><code class=\"bash\">root@sahara:~\/weave# \/usr\/local\/bin\/weave launch-router --no-dns --init-peer-count 8  --ipalloc-range 10.128.0.0\/10 10.43.68.61 10.43.68.62 10.43.68.63 10.43.68.64 10.43.68.65 10.43.68.69 10.43.68.70 Error response from daemon: Cannot start container b5c0d3e7b69a0101586d1ffe79862f292ed72b72d3f6bf5e21debf086b81db67: [8] System error: failed to set gateway while updating gateway: network is unreachable root@sahara:~\/weave#  <\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u0443\u0436\u0435 \u043f\u043e\u043c\u043e\u0449\u044c \u043a\u043b\u0443\u0431\u0430 \u0438\u0437 IRC \u043d\u0435 \u043f\u043e\u043c\u043e\u0433\u043b\u0430, \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0432\u044b\u043f\u043b\u044b\u0432\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043c\u0443.<br \/>  \u041f\u0443\u0442\u0435\u043c \u0434\u043e\u043b\u0433\u0438\u0445 \u043f\u0440\u043e\u0431 \u0438 \u043e\u0448\u0438\u0431\u043e\u043a \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043a\u043e\u0440\u0435\u043d\u044c \u0437\u043b\u0430 \u043a\u0440\u044b\u043b\u0441\u044f \u0432 \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d\u0438\u0438 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e IP \u0430\u0434\u0440\u0435\u0441\u0432 \u043c\u043e\u0441\u0442\u0443 weave \u043f\u0440\u0438 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438.<br \/>  \u0410 \u0438\u043c\u0435\u043d\u043d\u043e. \u0420\u0430\u043d\u0435\u0435 \u044f \u043f\u043e\u0434\u043d\u0438\u043c\u0430\u043b \u043c\u043e\u0441\u0442 \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u044c\u044e \u0432 <code>\/etc\/network\/interfaces.d\/weave<\/code>:  <\/p>\n<pre><code class=\"bash\">auto weave iface weave inet manual         pre-up \/usr\/local\/bin\/weave --local create-bridge         post-up ip addr add dev weave 10.4.7.1\/16         pre-down ifconfig weave down         post-down brctl delbr weave <\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0432\u044b\u044f\u0441\u043d\u0438\u043b\u043e\u0441\u044c, \u0435\u0441\u043b\u0438 \u0443\u0431\u0440\u0430\u0442\u044c <code>ip add...<\/code>, \u0442\u043e docker &#8212;bridge weave \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<br \/>  \u0422\u0430\u043a \u0436\u0435, \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 weave \u0432 \u0442\u0430\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0432\u044b\u043a\u043b\u044e\u0447\u0430\u0442\u044c FASTDP:<br \/>  <code> export WEAVE_NO_FASTDP=1 <\/code><br \/>  \u0412 \u0438\u0442\u043e\u0433\u0435, \u0440\u0435\u043b\u0435\u0432\u0430\u043d\u0442\u043d\u044b\u0435 \u0447\u0430\u0441\u0442\u0438 \u0444\u0430\u043b\u043e\u0432 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438:<br \/>  \/etc\/network\/interfaces.d\/weave:  <\/p>\n<pre><code class=\"bash\">auto weave iface weave inet manual         pre-up WEAVE_NO_FASTDP=1 \/usr\/local\/bin\/weave --local create-bridge         pre-down ifconfig weave down         post-down brctl delbr weave <\/code><\/pre>\n<p>  \/etc\/init\/weave.conf:  <\/p>\n<pre><code class=\"bash\">start on filesystem and started docker respawn script     export DOCKER_BRIDGE=weave     export WEAVE_NO_FASTDP=1     \/usr\/local\/bin\/weave launch-router --no-dns --init-peer-count 8  --ipalloc-range 10.128.0.0\/10 10.43.68.61 10.43.68.62 10.43.68.63 10.43.68.64 10.43.68.65 10.43.68.69 10.43.68.70     \/usr\/local\/bin\/weave expose 10.4.7.1\/16     \/usr\/bin\/docker attach weave end script <\/code><\/pre>\n<p>  \/etc\/default\/docker:  <\/p>\n<pre><code class=\"bash\">DOCKER_NETWORK_OPTS=&quot;--bridge weave --fixed-cidr=10.4.7.0\/24&quot; <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u0430\u043a \u0438 \u0440\u0430\u043d\u044c\u0448\u0435.<\/p>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u044d\u0442\u043e\u0442 \u043e\u043f\u044b\u0442 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u0432\u0440\u0435\u043c\u044f \u0438 \u043d\u0435\u0440\u0432\u044b.               <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/270521\/\"> http:\/\/habrahabr.ru\/post\/270521\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0421\u0435\u0433\u043e\u0434\u043d\u044f, \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u0430 Docker 1.9 \u0443 \u043c\u0435\u043d\u044f \u0432\u043f\u043e\u043b\u043d\u0435 \u043e\u0436\u0438\u0434\u0430\u0435\u043c\u043e \u0441\u043b\u043e\u043c\u0430\u043b\u0441\u044f \u0440\u0430\u043d\u0435\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0441\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 <a href=\"http:\/\/weave.works\">Weave<\/a><br \/>  \u041e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u0448\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0438 \u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043f\u043e\u0434 \u043a\u0430\u0442\u043e\u043c  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-267825","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/267825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=267825"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/267825\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=267825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=267825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=267825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}