{"id":24288065,"url":"https://github.com/arturmareknowak/dockerbridge","last_synced_at":"2026-05-17T18:05:50.505Z","repository":{"id":272341594,"uuid":"916268385","full_name":"ArturMarekNowak/DockerBridge","owner":"ArturMarekNowak","description":"Simple experiment with docker networking","archived":false,"fork":false,"pushed_at":"2025-01-13T19:48:52.000Z","size":176,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-05T23:27:37.526Z","etag":null,"topics":["bridge","docker","networking","nginx"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArturMarekNowak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-13T19:15:20.000Z","updated_at":"2025-01-13T19:50:08.000Z","dependencies_parsed_at":"2025-01-13T20:36:52.614Z","dependency_job_id":null,"html_url":"https://github.com/ArturMarekNowak/DockerBridge","commit_stats":null,"previous_names":["arturmareknowak/dockerbridge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ArturMarekNowak/DockerBridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArturMarekNowak%2FDockerBridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArturMarekNowak%2FDockerBridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArturMarekNowak%2FDockerBridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArturMarekNowak%2FDockerBridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArturMarekNowak","download_url":"https://codeload.github.com/ArturMarekNowak/DockerBridge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArturMarekNowak%2FDockerBridge/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264376624,"owners_count":23598573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bridge","docker","networking","nginx"],"created_at":"2025-01-16T09:38:36.870Z","updated_at":"2026-05-17T18:05:45.480Z","avatar_url":"https://github.com/ArturMarekNowak.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DockerBridge\n\nSimple experiment with docker networking\n\n## Table of contents\n* [General info](#general-info)\n* [Prerequisites](#prerequisites)\n* [Technologies](#technologies)\n* [Status](#status)\n\n## Prerequisites\n\nCreate two networks:\n\n`docker network create networkOne`\n\nand\n\n`docker network create networkTwo`\n\n## General info\n\nProject contains two nginx containers, each residing in its own network.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"./.docs/network.drawio.png\" alt=\"\"/\u003e\n\u003cp align=\"center\"\u003ePic.1 Visualization of project run with docker\u003c/p\u003e\n\nfirst we check the config of our default network bridge\n\n`docker network inspect bridge`\n\nand in response we check that ICC option is enabled\n\n```\n[\n    {\n        ...\n        \"Options\": {\n            \"com.docker.network.bridge.default_bridge\": \"true\",\n            \"com.docker.network.bridge.enable_icc\": \"true\",\n            \"com.docker.network.bridge.enable_ip_masquerade\": \"true\",\n            \"com.docker.network.bridge.host_binding_ipv4\": \"0.0.0.0\",\n            \"com.docker.network.bridge.name\": \"docker0\",\n            \"com.docker.network.driver.mtu\": \"1500\"\n        },\n        \"Labels\": {}\n    }\n]\n```\n\nwe run the project with:\n\n`docker compose up`\n\nlets enter one of the containers and run:\n\n`curl http://\u003chost IP\u003e:8889`\n\nin a response we should get:\n\n```\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n    \u003ctitle\u003eHello, Nginx!\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003ch1\u003eHello, Nginx!\u003c/h1\u003e\n    \u003cp\u003eThis is a test page served by Nginx in a Docker container.\u003c/p\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\nnext we stop docker desktop/daemon and add to `%userprofile%/.docker/daemon.json` or `~/.docker/daemon.json`:\n\n```\n{\n    \"icc\": false\n}\n```\n\nwe start docker again and make sure that ICC is disabled with:\n\n`docker network inspect bridge`\n\nour response is:\n\n```\n[\n    {\n        ...\n        \"Options\": {\n            \"com.docker.network.bridge.default_bridge\": \"true\",\n            \"com.docker.network.bridge.enable_icc\": \"false\",\n            \"com.docker.network.bridge.enable_ip_masquerade\": \"true\",\n            \"com.docker.network.bridge.host_binding_ipv4\": \"0.0.0.0\",\n            \"com.docker.network.bridge.name\": \"docker0\",\n            \"com.docker.network.driver.mtu\": \"1500\"\n        },\n        \"Labels\": {}\n    }\n]\n```\n\nwe run the project again with:\n\n`docker compose up`\n\nwe enter one of the containers again and run again:\n\n`curl http://\u003chost IP\u003e:8889`\n\nin a response we should get again:\n\n```\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\u003chead\u003e\n    \u003ctitle\u003eHello, Nginx!\u003c/title\u003e\n\u003c/head\u003e\n\u003cbody\u003e\n    \u003ch1\u003eHello, Nginx!\u003c/h1\u003e\n    \u003cp\u003eThis is a test page served by Nginx in a Docker container.\u003c/p\u003e\n\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## Technologies\n* Docker\n* Nginx\n\n## Status\nProject is: _finished_","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farturmareknowak%2Fdockerbridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farturmareknowak%2Fdockerbridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farturmareknowak%2Fdockerbridge/lists"}