{"id":37124880,"url":"https://github.com/squaremo/libnetwork","last_synced_at":"2026-01-14T14:26:09.123Z","repository":{"id":31549470,"uuid":"35114108","full_name":"squaremo/libnetwork","owner":"squaremo","description":"networking for containers","archived":false,"fork":true,"pushed_at":"2015-06-08T16:07:20.000Z","size":1265,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-05T01:21:41.943Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"moby/libnetwork","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/squaremo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-05T17:32:11.000Z","updated_at":"2020-03-05T19:53:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/squaremo/libnetwork","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/squaremo/libnetwork","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squaremo%2Flibnetwork","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squaremo%2Flibnetwork/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squaremo%2Flibnetwork/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squaremo%2Flibnetwork/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/squaremo","download_url":"https://codeload.github.com/squaremo/libnetwork/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squaremo%2Flibnetwork/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28422986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-14T14:26:08.359Z","updated_at":"2026-01-14T14:26:09.114Z","avatar_url":"https://github.com/squaremo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# libnetwork - networking for containers\n\n[![Circle CI](https://circleci.com/gh/docker/libnetwork/tree/master.svg?style=svg)](https://circleci.com/gh/docker/libnetwork/tree/master) [![Coverage Status](https://coveralls.io/repos/docker/libnetwork/badge.svg)](https://coveralls.io/r/docker/libnetwork) [![GoDoc](https://godoc.org/github.com/docker/libnetwork?status.svg)](https://godoc.org/github.com/docker/libnetwork)\n\nLibnetwork provides a native Go implementation for connecting containers\n\nThe goal of libnetwork is to deliver a robust Container Network Model that provides a consistent programming interface and the required network abstractions for applications.\n\n**NOTE**: libnetwork project is under heavy development and is not ready for general use.\n\n#### Design\nPlease refer to the [design](docs/design.md) for more information.\n\n#### Using libnetwork\n\nThere are many networking solutions available to suit a broad range of use-cases. libnetwork uses a driver / plugin model to support all of these solutions while abstracting the complexity of the driver implementations by exposing a simple and consistent Network Model to users.\n\n\n```go\n        // Create a new controller instance\n        controller := libnetwork.New(\"/etc/default/libnetwork.toml\")\n\n        // Select and configure the network driver\n        networkType := \"bridge\"\n\n        driverOptions := options.Generic{}\n        genericOption := make(map[string]interface{})\n        genericOption[netlabel.GenericData] = driverOptions\n        err := controller.ConfigureNetworkDriver(networkType, genericOption)\n        if err != nil {\n                return\n        }\n\n        // Create a network for containers to join.\n        // NewNetwork accepts Variadic optional arguments that libnetwork and Drivers can make of\n        network, err := controller.NewNetwork(networkType, \"network1\")\n        if err != nil {\n                return\n        }\n\n        // For each new container: allocate IP and interfaces. The returned network\n        // settings will be used for container infos (inspect and such), as well as\n        // iptables rules for port publishing. This info is contained or accessible\n        // from the returned endpoint.\n        ep, err := network.CreateEndpoint(\"Endpoint1\")\n        if err != nil {\n                return\n        }\n\n        // A container can join the endpoint by providing the container ID to the join\n        // api.\n        // Join acceps Variadic arguments which will be made use of by libnetwork and Drivers\n        err = ep.Join(\"container1\",\n                libnetwork.JoinOptionHostname(\"test\"),\n                libnetwork.JoinOptionDomainname(\"docker.io\"))\n        if err != nil {\n                return\n        }\n\n\t\t// libentwork client can check the endpoint's operational data via the Info() API\n\t\tepInfo, err := ep.DriverInfo()\n\t\tmapData, ok := epInfo[netlabel.PortMap]\n\t\tif ok {\n\t\t\tportMapping, ok := mapData.([]netutils.PortBinding)\n\t\t\tif ok {\n\t\t\t\tfmt.Printf(\"Current port mapping for endpoint %s: %v\", ep.Name(), portMapping)\n\t\t\t}\n\t\t}\n\n```\n#### Current Status\nPlease watch this space for updates on the progress.\n\nCurrently libnetwork is nothing more than an attempt to modularize the Docker platform's networking subsystem by moving it into libnetwork as a library.\n\n## Future\nPlease refer to [roadmap](ROADMAP.md) for more information.\n\n## Contributing\n\nWant to hack on libnetwork? [Docker's contributions guidelines](https://github.com/docker/docker/blob/master/CONTRIBUTING.md) apply.\n\n## Copyright and license\nCode and documentation copyright 2015 Docker, inc. Code released under the Apache 2.0 license. Docs released under Creative commons.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquaremo%2Flibnetwork","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquaremo%2Flibnetwork","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquaremo%2Flibnetwork/lists"}