From a280bf6cf496eed61c18cc1563c40836f5a6f93d Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 8 Oct 2019 00:15:10 +0200 Subject: getting the circus network id --- src/docker.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit 1.4.1