diff options
-rw-r--r-- | src/container.go | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/container.go b/src/container.go index 5b2075b..c9a918f 100644 --- a/src/container.go +++ b/src/container.go @@ -1,15 +1,15 @@ package main import ( - "github.com/docker/docker/api/types/container" - "github.com/docker/docker/api/types" "fmt" - "time" + "github.com/docker/docker/api/types" + "github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/network" + "time" ) const ( - VPNNetworkName = "vpn-network" + VPNNetworkName = "circus-vpnnet" ) type ChallengeContainer struct { @@ -24,7 +24,11 @@ func (cc ChallengeContainer) startContainer() (address string, containerID strin setupContext() setupDockerCLI() // Set up network - setupNetwork() + err = setupNetwork() + + if err != nil { + return "", "", err + } // Create container resp, err := dockerCli.ContainerCreate(dockerCtx, &container.Config{ |