diff options
author | Emile <hanemile@protonmail.com> | 2019-10-08 00:14:49 +0200 |
---|---|---|
committer | Emile <hanemile@protonmail.com> | 2019-10-08 00:14:49 +0200 |
commit | 58501ff9c8224a7629b6ff150d3f2f16495d253b (patch) | |
tree | 54174da6648a2de227a8c9c1ab9b1fd6d64ed8c4 | |
parent | 8f731db5a589930717d11a37db3c53e914c373a8 (diff) |
starting the docker container
-rw-r--r-- | src/docker.go | 6 |
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 |