about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/docker.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/docker.go b/src/docker.go
index b56c811..c216768 100644
--- a/src/docker.go
+++ b/src/docker.go
@@ -101,6 +101,12 @@ func spawnCompanion(username string, accesscode string) {
 	// id of the created container
 	containerID := resp.ID
 
+	// start the docker container
+	err = dockerCLI.ContainerStart(dockerCtx, containerID, types.ContainerStartOptions{})
+	if err != nil {
+		fmt.Println(err)
+	}
+
 	log.Printf("Adding the container (%s) to the circus network", containerID)
 
 	// get the circus network id