Merge pull request #45512 from thaJeztah/libnetwork_fix_readme_example

libnetwork: update example in README.md
This commit is contained in:
Sebastiaan van Stijn 2023-05-15 21:48:06 +01:00 committed by GitHub
commit 9548916aa8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 7 deletions

View file

@ -19,7 +19,6 @@ import (
"fmt"
"log"
"github.com/docker/docker/pkg/reexec"
"github.com/docker/docker/libnetwork"
"github.com/docker/docker/libnetwork/config"
"github.com/docker/docker/libnetwork/netlabel"
@ -27,10 +26,6 @@ import (
)
func main() {
if reexec.Init() {
return
}
// Select and configure the network driver
networkType := "bridge"
@ -82,7 +77,7 @@ func main() {
macAddress, ok := epInfo[netlabel.MacAddress]
if !ok {
log.Fatalf("failed to get mac address from endpoint info")
log.Fatal("failed to get mac address from endpoint info")
}
fmt.Printf("Joined endpoint %s (%s) to sandbox %s (%s)\n", ep.Name(), macAddress, sbx.ContainerID(), sbx.Key())

View file

@ -1,5 +1,5 @@
This document provides a TLD&R version of https://docs.docker.com/v1.6/articles/networking/.
This document provides a TL;DR version of https://github.com/moby/moby/blob/v1.6.0/docs/sources/articles/networking.md.
If more interested in detailed operational design, please refer to this link.
## Docker Networking design as of Docker v1.6