{"id":18240,"date":"2025-01-28T13:47:45","date_gmt":"2025-01-28T13:47:45","guid":{"rendered":"http:\/\/www.max-sperling.bplaced.net\/?p=18240"},"modified":"2025-01-30T15:55:01","modified_gmt":"2025-01-30T15:55:01","slug":"default-provided-networks-docker","status":"publish","type":"post","link":"http:\/\/www.max-sperling.bplaced.net\/?p=18240","title":{"rendered":"Default provided networks (Docker)"},"content":{"rendered":"<p><strong>Bridge network<\/strong> (&#8220;&#8211;network bridge&#8221;, default)<\/p>\n<p>Details<br \/>\n&#8211; Containers of this type are in the same network.<br \/>\n&#8211; Their network is bridged to the host network.<br \/>\n&#8211; They can communicate via published ports.<\/p>\n<p>Example<\/p>\n<pre>\r\n          192.168.0.0\/24\r\n          Host Network\r\n  -----------------------------\r\n  |             |             |\r\n192.168.0.1   192.168.0.2   192.168.0.3\r\nWiFi-Router   Host          Printer\r\n              172.17.0.1\r\n                |\r\n  -----------------------------\r\n  |       Bridge Network      |\r\n  |       172.17.0.0\/16       |\r\n172.17.0.2                  172.17.0.3\r\nContainer_1                 Container_2\r\n<\/pre>\n<p>The host operates as a component in the host network and as the gateway for the bridge network.<\/p>\n<hr>\n<p><strong>Host network<\/strong> (&#8220;&#8211;network host&#8221;)<\/p>\n<p>Details<br \/>\n&#8211; Containers of this type share the host network.<br \/>\n&#8211; Pro: It provides a better performance.<br \/>\n&#8211; Con: It exposes more of the host network.<\/p>\n<p>Example<\/p>\n<pre>\r\n          192.168.0.0\/24\r\n          Host Network\r\n  ---------------------------------------------------------\r\n  |             |             |             |             |\r\n192.168.0.1   192.168.0.2   192.168.0.2   192.168.0.4   192.168.0.5\r\nWiFi-Router   Host          Printer       Container_1   Container_2\r\n<\/pre>\n<hr>\n<p><strong>None network<\/strong> (&#8220;&#8211;network none&#8221;)<\/p>\n<p>Details<br \/>\n&#8211; Containers of this type are completely isolated.<\/p>\n<p>Example<\/p>\n<pre>\r\n          192.168.0.0\/24\r\n          Host Network\r\n  -----------------------------\r\n  |             |             |\r\n192.168.0.1   192.168.0.2   192.168.0.2\r\nWiFi-Router   Host          Printer\r\n\r\n-------------   -------------\r\n|Container_1|   |Container_2|\r\n-------------   -------------\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Bridge network (&#8220;&#8211;network bridge&#8221;, default) Details &#8211; Containers of this type are in the same network. &#8211; Their network is<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false},"categories":[82],"tags":[],"_links":{"self":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/18240"}],"collection":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18240"}],"version-history":[{"count":15,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/18240\/revisions"}],"predecessor-version":[{"id":18255,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=\/wp\/v2\/posts\/18240\/revisions\/18255"}],"wp:attachment":[{"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18240"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18240"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.max-sperling.bplaced.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18240"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}