{"id":228706,"date":"2021-03-12T12:46:57","date_gmt":"2021-03-12T04:46:57","guid":{"rendered":"https:\/\/magicalbits.net\/?p=228706"},"modified":"2021-03-12T12:46:57","modified_gmt":"2021-03-12T04:46:57","slug":"docker-how-to-prevent-outgoing-traffic-from-a-dockers-network-using-docker-compose-and-no-iptables","status":"publish","type":"post","link":"https:\/\/magicalbits.net\/?p=228706","title":{"rendered":"Docker: How to prevent outgoing traffic from a docker&#8217;s network using docker-compose and no iptables?"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/-cmim3CrZ9Wo\/AAAAAAAAAAI\/AAAAAAAAAjs\/hnKTOHALc6M\/photo.jpg?sz=32\"><\/p>\n<p>I&#8217;m using Alpine Linux as a base for my containers, so no iptables for me, and I would rather not have to add it only for that. Thanks for contributing an answer to Stack Overflow!<\/p>\n<p><a href=\"https:\/\/stackoverflow.com\/questions\/45635331\/docker-how-to-prevent-outgoing-traffic-from-a-dockers-network-using-docker-com\">Read more<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m using Alpine Linux as a base for my containers, so no iptables for me, and I would rather not have to add it only for that. Thanks for contributing an answer to Stack Overflow! Read more<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[54],"class_list":["post-228706","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-pocket"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/228706","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=228706"}],"version-history":[{"count":1,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/228706\/revisions"}],"predecessor-version":[{"id":228707,"href":"https:\/\/magicalbits.net\/index.php?rest_route=\/wp\/v2\/posts\/228706\/revisions\/228707"}],"wp:attachment":[{"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=228706"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=228706"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/magicalbits.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=228706"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}