about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-08 00:15:10 +0200
committerEmile <hanemile@protonmail.com>2019-10-08 00:15:10 +0200
commita280bf6cf496eed61c18cc1563c40836f5a6f93d (patch)
tree1fb796994a2652d30135b54ab547ff71d1a9240a
parent58501ff9c8224a7629b6ff150d3f2f16495d253b (diff)
getting the circus network id
-rw-r--r--src/docker.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/docker.go b/src/docker.go
index c216768..1dda5b2 100644
--- a/src/docker.go
+++ b/src/docker.go
@@ -110,7 +110,10 @@ func spawnCompanion(username string, accesscode string) {
 	log.Printf("Adding the container (%s) to the circus network", containerID)
 
 	// get the circus network id
-	circusNetworkID := getCircusNetworkID()
+	circusNetworkID, err = getCircusNetworkID(dockerCtx, dockerCLI)
+	if err != nil {
+		log.Println("error: could not get CircusNetworkID", err)
+	}
 	log.Printf("circus network ID: %s", circusNetworkID)
 
 	// connect the companion container to the circus network