about summary refs log tree commit diff
diff options
context:
space:
mode:
-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