summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiaan van Stijn <thaJeztah@users.noreply.github.com>2023-05-15 21:48:06 +0100
committerGitHub <noreply@github.com>2023-05-15 21:48:06 +0100
commit9548916aa83ded9f90c93a3d3b37074a03b47dc9 (patch)
tree616c97996a53902e4580affd085b911087746659
parent72b2469be046435f625496e30fdc9b60d34b447f (diff)
parent9e817251a8f81b83d201515714c903e3c8b2ead9 (diff)
downloaddocker-9548916aa83ded9f90c93a3d3b37074a03b47dc9.tar.gz
Merge pull request #45512 from thaJeztah/libnetwork_fix_readme_example
libnetwork: update example in README.md
-rw-r--r--libnetwork/README.md7
-rw-r--r--libnetwork/docs/legacy.md2
2 files changed, 2 insertions, 7 deletions
diff --git a/libnetwork/README.md b/libnetwork/README.md
index 2308b7cb06..3dcf9dd4e6 100644
--- a/libnetwork/README.md
+++ b/libnetwork/README.md
@@ -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())
diff --git a/libnetwork/docs/legacy.md b/libnetwork/docs/legacy.md
index 7a19dcdff9..092cb7d3f9 100644
--- a/libnetwork/docs/legacy.md
+++ b/libnetwork/docs/legacy.md
@@ -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