{
    "url": "https://delaparra-services.nl/knowledge-hub/bridge",
    "locale": "en",
    "title": "bridge: Knowledge hub | DeLaParra Services",
    "description": "The default network driver. Containers get a private IP on a virtual bridge and reach the outside world via NAT.",
    "alternates": {
        "en": "https://delaparra-services.nl/knowledge-hub/bridge",
        "nl": "https://delaparra-services.nl/nl/kennisbank/bridge"
    },
    "formats": {
        "csv": "https://delaparra-services.nl/knowledge-hub/bridge.csv",
        "md": "https://delaparra-services.nl/knowledge-hub/bridge.md",
        "json": "https://delaparra-services.nl/knowledge-hub/bridge.json",
        "zip": "https://delaparra-services.nl/knowledge-hub/bridge.zip",
        "pdf": "https://delaparra-services.nl/knowledge-hub/bridge.pdf"
    },
    "downloads": [
        {
            "url": "https://delaparra-services.nl/knowledge-hub/bridge.csv",
            "encodingFormat": "text/csv",
            "name": "bridge.csv"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/bridge.json",
            "encodingFormat": "application/json",
            "name": "bridge.json"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/bridge.md",
            "encodingFormat": "text/markdown",
            "name": "bridge.md"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/bridge.pdf",
            "encodingFormat": "application/pdf",
            "name": "bridge.pdf"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/bridge.zip",
            "encodingFormat": "application/zip",
            "name": "bridge.zip"
        },
        {
            "url": "https://delaparra-services.nl/knowledge-hub/bridge/skills.zip",
            "encodingFormat": "application/zip",
            "name": "bridge-skills.zip"
        }
    ],
    "markdown": "1. [Home](<https://delaparra-services.nl/>) \n1. [Knowledge hub](<https://delaparra-services.nl/knowledge-hub>) \n1. [bridge](<https://delaparra-services.nl/knowledge-hub/bridge>)\n\n  \n\nCategory: Docker \n\n# bridge\n\n  Explained by [Reinier de la Parra](<https://delaparra-services.nl/about>)  Updated November 25, 2026    \n\n## What is bridge?\n\n \n\nbridge: The default network driver. Containers get a private IP on a virtual bridge and reach the outside world via NAT. Bridge is Docker's default network driver. Each container gets a private IP address on a virtual network inside the host, and reaches the internet through network address translation. Containers on the same user-defined bridge network can reach each other by container name. Your app can connect to ` mysql:3306 ` instead of an IP address. Docker Compose creates such a network for every project automatically.\n\n \n\nDefinition source [Coders Lingo](<https://coderslingo.com/resources/open-dataset/>), [CC BY 4.0](<https://creativecommons.org/licenses/by/4.0/>)\n\n \n\n## Frequently asked questions about bridge\n\n  \n\n### What should you keep in mind with bridge?\n\n \n\nThe built-in default bridge does not offer name resolution, which is why ` docker network create ` and Compose networks are the better choice. To make a service reachable from outside the host, publish its port with ` -p `. Only publish what needs to be public. A database usually only needs to be reachable from the app container, not from the whole internet.\n\n    \n\n### What does an example of bridge look like?\n\n \n\n```\ndocker network create --driver bridge appnet docker run --network appnet myapp:1.0\n```\n\n \n\n## At a glance\n\n   CategoryDocker Explained by[Reinier de la Parra](<https://delaparra-services.nl/about>) UpdatedNovember 25, 2026\n\n \n\n## More Docker terms\n\n \n\n- [ARG](<https://delaparra-services.nl/knowledge-hub/arg>) \n- [base image](<https://delaparra-services.nl/knowledge-hub/base-image>) \n- [bind mount](<https://delaparra-services.nl/knowledge-hub/bind-mount>) \n- [build](<https://delaparra-services.nl/knowledge-hub/build>) \n- [CMD](<https://delaparra-services.nl/knowledge-hub/cmd>) \n- [container](<https://delaparra-services.nl/knowledge-hub/container>)\n\n \n\n[All terms starting with B](<https://delaparra-services.nl/knowledge-hub#letter-b>)\n\n \n\n## Skills\n\n \n\n- ### Docker Project Foundations\n\n \n\nUse this skill when setting up, initializing, or Dockerizing a project, even if the user doesn't explicitly mention Docker but describes a need for containerized local development, adding a database or cache dependency, or running services without host-level installs. Covers Dockerfile, compose.yaml, and .dockerignore creation with Docker best practices.\n\n [View skill](<https://delaparra-services.nl/skills/docker-project-foundations>) [Download zip](<https://delaparra-services.nl/skills/docker-project-foundations/download>) \n- ### Docker Compose Patterns\n\n \n\nUse this skill when creating, modifying, or debugging Docker Compose configurations, even if the user just says they need to wire services together, add a database to their stack, or set up a local development environment with multiple containers. Covers service definitions, health checks, dependency ordering, volumes, networks, environment variables, and development overrides.\n\n [View skill](<https://delaparra-services.nl/skills/docker-compose-patterns>) [Download zip](<https://delaparra-services.nl/skills/docker-compose-patterns/download>) \n- ### Docker Build Strategies\n\n \n\nUse this skill when writing, reviewing, or optimizing Dockerfiles, even if the user just says their image is too large, their build is slow, or they need to harden a container for production. Covers multi-stage builds, layer caching, .dockerignore, non-root users, and image size optimization.\n\n [View skill](<https://delaparra-services.nl/skills/docker-build-strategies>) [Download zip](<https://delaparra-services.nl/skills/docker-build-strategies/download>)\n\n [Download all skills (zip)](<https://delaparra-services.nl/knowledge-hub/bridge/skills.zip>)\n\n \n\n## Manuals\n\n \n\n- [Docker for your Laravel app](<https://delaparra-services.nl/manuals/docker-voor-je-laravel-app>) \n- [Deploying a Laravel app](<https://delaparra-services.nl/manuals/je-laravel-app-online-zetten>)\n\n \n\n## Related services\n\n \n\n- [Custom software and web applications](<https://delaparra-services.nl/services#service-03>)\n\nPerhaps your customers need somewhere to download their invoices, or your staff are managing bookings in a spreadsheet.\n\n \n\n## Need any help?\n\n \n\nStuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.\n\n  [Get in touch](<https://delaparra-services.nl/availability>)\n\n[HTML version](https://delaparra-services.nl/knowledge-hub/bridge)\n",
    "structured_data": {
        "@context": "https://schema.org",
        "@graph": [
            {
                "@type": "Organization",
                "@id": "https://delaparra-services.nl/#practice",
                "logo": "https://delaparra-services.nl/logo.png",
                "name": "DeLaParra Services",
                "legalName": "DeLaParra Services",
                "url": "https://delaparra-services.nl/",
                "description": "Bespoke software, web applications and mobile apps, developed in Laravel by a single developer in Groningen. Fixed price agreed in advance, full source code provided upon delivery.",
                "email": "info@delaparra-services.nl",
                "address": {
                    "@type": "PostalAddress",
                    "addressLocality": "Groningen",
                    "addressRegion": "Groningen",
                    "addressCountry": "NL"
                },
                "areaServed": "Groningen, the Netherlands",
                "knowsLanguage": [
                    "en",
                    "nl"
                ],
                "knowsAbout": [
                    "Web design and development",
                    "App development",
                    "Custom software and web applications",
                    "OpenSpec",
                    "AI code review",
                    "Your own coding agent"
                ],
                "founder": {
                    "@id": "https://delaparra-services.nl/#person"
                }
            },
            {
                "@type": "FAQPage",
                "@id": "https://delaparra-services.nl/knowledge-hub/bridge#webpage",
                "url": "https://delaparra-services.nl/knowledge-hub/bridge",
                "name": "bridge: Knowledge hub | DeLaParra Services",
                "description": "The default network driver. Containers get a private IP on a virtual bridge and reach the outside world via NAT.",
                "isPartOf": {
                    "@id": "https://delaparra-services.nl/#website"
                },
                "about": {
                    "@type": "DefinedTerm",
                    "@id": "https://delaparra-services.nl/knowledge-hub/bridge#term",
                    "name": "bridge",
                    "description": "The default network driver. Containers get a private IP on a virtual bridge and reach the outside world via NAT.",
                    "termCode": "bridge",
                    "url": "https://delaparra-services.nl/knowledge-hub/bridge",
                    "inLanguage": "en",
                    "keywords": "Docker",
                    "dateModified": "2026-11-25T17:46:25+00:00",
                    "inDefinedTermSet": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#terms"
                    },
                    "isPartOf": {
                        "@id": "https://delaparra-services.nl/knowledge-hub#dataset"
                    },
                    "subjectOf": [
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/bridge#webpage"
                        },
                        {
                            "@id": "https://delaparra-services.nl/knowledge-hub/bridge#dataset"
                        }
                    ]
                },
                "inLanguage": "en",
                "breadcrumb": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/bridge#breadcrumb"
                },
                "mainEntity": [
                    {
                        "@type": "Question",
                        "name": "What is bridge?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "The default network driver. Containers get a private IP on a virtual bridge and reach the outside world via NAT. Bridge is Docker's default network driver. Each container gets a private IP address on a virtual network inside the host, and reaches the internet through network address translation. Containers on the same user-defined bridge network can reach each other by container name. Your app can connect to mysql:3306 instead of an IP address. Docker Compose creates such a network for every project automatically."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What should you keep in mind with bridge?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "The built-in default bridge does not offer name resolution, which is why docker network create and Compose networks are the better choice. To make a service reachable from outside the host, publish its port with -p. Only publish what needs to be public. A database usually only needs to be reachable from the app container, not from the whole internet."
                        }
                    },
                    {
                        "@type": "Question",
                        "name": "What does an example of bridge look like?",
                        "acceptedAnswer": {
                            "@type": "Answer",
                            "text": "docker network create --driver bridge appnet docker run --network appnet myapp:1.0"
                        }
                    }
                ],
                "author": {
                    "@id": "https://delaparra-services.nl/#person"
                },
                "mentions": [
                    {
                        "@id": "https://delaparra-services.nl/skills/docker-project-foundations#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/docker-compose-patterns#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/skills/docker-build-strategies#skill"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/docker-voor-je-laravel-app#article"
                    },
                    {
                        "@id": "https://delaparra-services.nl/manuals/je-laravel-app-online-zetten#article"
                    }
                ]
            },
            {
                "@type": "BreadcrumbList",
                "@id": "https://delaparra-services.nl/knowledge-hub/bridge#breadcrumb",
                "itemListElement": [
                    {
                        "@type": "ListItem",
                        "position": 1,
                        "name": "Home",
                        "item": "https://delaparra-services.nl/"
                    },
                    {
                        "@type": "ListItem",
                        "position": 2,
                        "name": "Knowledge hub",
                        "item": "https://delaparra-services.nl/knowledge-hub"
                    },
                    {
                        "@type": "ListItem",
                        "position": 3,
                        "name": "bridge"
                    }
                ]
            },
            {
                "@type": "Person",
                "@id": "https://delaparra-services.nl/#person",
                "name": "Reinier de la Parra",
                "url": "https://delaparra-services.nl/about"
            },
            {
                "@type": "Dataset",
                "@id": "https://delaparra-services.nl/knowledge-hub/bridge#dataset",
                "name": "bridge",
                "description": "The default network driver. Containers get a private IP on a virtual bridge and reach the outside world via NAT.",
                "url": "https://delaparra-services.nl/knowledge-hub/bridge",
                "identifier": "https://delaparra-services.nl/knowledge-hub/bridge#dataset",
                "about": {
                    "@id": "https://delaparra-services.nl/knowledge-hub/bridge#term"
                },
                "creator": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "publisher": {
                    "@id": "https://delaparra-services.nl/#practice"
                },
                "license": "https://creativecommons.org/licenses/by/4.0/",
                "creditText": "Coders Lingo (https://coderslingo.com/resources/open-dataset/), CC BY 4.0",
                "isAccessibleForFree": true,
                "inLanguage": "en",
                "keywords": "Docker",
                "version": "2026-11-25",
                "dateModified": "2026-11-25T17:46:25+00:00",
                "isPartOf": {
                    "@type": "Dataset",
                    "@id": "https://delaparra-services.nl/knowledge-hub#dataset",
                    "name": "IT terms from A to Z",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "includedInDataCatalog": {
                    "@type": "DataCatalog",
                    "@id": "https://delaparra-services.nl/knowledge-hub#catalog",
                    "name": "Knowledge hub data catalog",
                    "url": "https://delaparra-services.nl/knowledge-hub"
                },
                "distribution": [
                    {
                        "@type": "DataDownload",
                        "name": "bridge.csv",
                        "encodingFormat": "text/csv",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/bridge.csv",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "bridge.json",
                        "encodingFormat": "application/json",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/bridge.json",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "bridge.md",
                        "encodingFormat": "text/markdown",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/bridge.md",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "bridge.pdf",
                        "encodingFormat": "application/pdf",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/bridge.pdf",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "bridge.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/bridge.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    },
                    {
                        "@type": "DataDownload",
                        "name": "bridge-skills.zip",
                        "encodingFormat": "application/zip",
                        "contentUrl": "https://delaparra-services.nl/knowledge-hub/bridge/skills.zip",
                        "inLanguage": "en",
                        "dateModified": "2026-11-25T17:46:25+00:00",
                        "license": "https://creativecommons.org/licenses/by/4.0/"
                    }
                ]
            }
        ]
    }
}