about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-10-08 00:14:30 +0200
committerEmile <hanemile@protonmail.com>2019-10-08 00:14:30 +0200
commit8f731db5a589930717d11a37db3c53e914c373a8 (patch)
treeb08484b6ebeb4badb1b429177c533b8b23a90db0
parent1a4167dc1e10e4d4d8167970948588b878e1de4d (diff)
using the network config
-rw-r--r--src/docker.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/docker.go b/src/docker.go
index 51e1d81..b56c811 100644
--- a/src/docker.go
+++ b/src/docker.go
@@ -91,12 +91,12 @@ func spawnCompanion(username string, accesscode string) {
 	log.Println("Creating the container")
 
 	// create the docker container
-	resp, err := dockerCLI.ContainerCreate(dockerCtx, Config, HostConfig, nil, "")
+	resp, err := dockerCLI.ContainerCreate(dockerCtx, Config, HostConfig, NetworkingConfig, "")
 	if err != nil {
 		panic(err)
 	}
 
-	log.Println("Container started!")
+	log.Println("Container created!")
 
 	// id of the created container
 	containerID := resp.ID