From 58501ff9c8224a7629b6ff150d3f2f16495d253b Mon Sep 17 00:00:00 2001 From: Emile Date: Tue, 8 Oct 2019 00:14:49 +0200 Subject: starting the docker container --- src/docker.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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 -- cgit 1.4.1