فهرست منبع

libnetwork: update example in README.md

Align the example with the code updated in 4e0319c87857f180b01f9b072603cc385d7fcee1.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 2 سال پیش
والد
کامیت
17882ed614
1فایلهای تغییر یافته به همراه1 افزوده شده و 6 حذف شده
  1. 1 6
      libnetwork/README.md

+ 1 - 6
libnetwork/README.md

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